wpQueryDrawerHWND
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns the handle associated with the open Toolbar or drawer.
Syntax
_wpQueryDrawerHWND(somSelf, ulDrawer)
Parameters
- somSelf (WPLaunchPad *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPLaunchPad.
- ulDrawer (ULONG) - input
- Toolbar or drawer being queried.
- **0** Toolbar.
- **>0** Drawer identifier.
Returns
- hwnd (HWND) - returns
- Handle of the frame window for the Toolbar or drawer.
- A return value of **NULL** indicates that the Toolbar or the specified drawer is closed.
How to Override
This method can be overridden to know when the slideup view handle is being requested.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPLaunchPad *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG ulDrawer; /* Toolbar or drawer being queried. */ HWND hwnd; /* Handle of the frame window for the Toolbar or drawer. */ hwnd = _wpQueryDrawerHWND(somSelf, ulDrawer);