[lazarus] Extending TToolButton Messages
Martin Smat
martin.smat at tiscali.cz
Mon Dec 23 12:16:58 EST 2002
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.
More information about the Lazarus
mailing list