« Return to Thread: What the usage of tryHandle and handle

Re: What the usage of tryHandle and handle

by Lyle Johnson-4 :: Rate this Message:

Reply to Author | View in Thread


On Jun 23, 2009, at 3:46 PM, Feng Feng wrote:

Thank you for your excellent explanation for what the difference is.

Now, I have one more question related to the usage of the function,

For the code,
sender->handle(this,FXSEL(SEL_COMMAND,ID_HIDE),NULL);

Does it mean the following?

Use sender's handle to deliver the message SEL_COMMAND to object which is created with ID_HIDE.

You've basically got it right. I would have said it means, "ask 'sender' to handle a message from me (this), with message type SEL_COMMAND, message identifier ID_HIDE, and NULL message data".

If
FXMAPFUNC(SEL_COMMAND, XXX::ID_HIDE, XXX::onHide),

Then the function onHide will be called.

Yes, right.

------------------------------------------------------------------------------

_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

 « Return to Thread: What the usage of tryHandle and handle