AddGadgetMessageHandler adds a given Gadget to the list of message handlers for another Gadget. Messages that are sent directly to hgadMsg will also be sent to hgadHandler as an GMF_EVENT. MSGID AddGadgetMessageHandler( HGADGET hgadMsg, // Gadget to attach to MSGID nMsg, // Message to watch for HGADGET hgadHandler) // Gadget to notify ); Parameters
Return ValuesHandler was successfully added. RemarksA message handler can be any Gadget. Once registered, hgadHandler will receive all messages sent to hgadMsg with a corresponding MSGID. Any valid public or private message can be listened it. If nMsg==0, all messages will be sent to hgadHandler.
A single hgadHandler may be registered multiple times to handle different messages from hgadMsg. See Also |
Build on Friday, March 17, 2000
|