wpSetDrawerHWND
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method stores the handle associated with the Toolbar or drawer into the instance data.
Syntax
wpSetDrawerHWND(somSelf, ulDrawer, hwnd)
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 set.
- **0** Toolbar.
- **>0** Drawer identifier.
- hwnd (HWND) - input
- Handle of the frame window for the drawer.
- A value of **NULLHANDLE** indicates that the view is closed.
Returns
- There is no return value for this method.
How to Override
This method can be overridden to know when a drawer view is opened.
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 set. */ HWND hwnd; /* Handle of the frame window for the drawer. */ wpSetDrawerHWND(somSelf, ulDrawer, hwnd);