VXPLib Documentation: COM
|
IVXPMenuHook::HookWnd
-
Attaches the interface to a window that has menus to be overridden.
-
HRESULT HookWnd(long hWnd, VARIANT_BOOL * success);
|
Parameters
-
hWnd [in] - Handle of the window to be attached.
success [out, retval] - Returns TRUE, if the operation was successful, or FALSE otherwise
Remarks
-
After having attached the interface to a window all messages from menus that belong to this window will be handled by the hook interface,
including main menu, all context menus and system menu of the window. To detach the window use method
UnHookWnd. When the interface is released it detaches from the window automatically. If this method is called
more than once it will be detaching previously attached window automatically, no need for calling UnHookWnd explicitely.
See Also
-
IVXPMenuHook | UnHookWnd
|