Hi,
In procedure TToolbar.WndProc are defined two messages (LM_INSERTTOOLBUTTON and LM_DELETETOOLBUTTON) in CNSendMessage and both messages have their second parameter (Data) nil. Can we use this parameter for something more usefull?
I suggest in case LM_INSERTTOOLBUTTON the Data be as TTBButton structure (Pointer(Message.LParam)) and in case LM_DELETETOOLBUTTON the Data be the number of deleted Toolbarbutton (@(Message.WParam)). This would be very usefull for creating toolbarbuttons in Win32 API.
Martin Smat.
