Jump to content

wpRefreshDrawer

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method updates the drawer after changes have been made to the set of objects in the Toolbar or drawer.

Syntax

wpRefreshDrawer(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 refreshed.
  • **0** Toolbar.
  • **>0** Drawer identifier.

Returns

There is no return value for this method.

How to Override

This method can be overridden to know when the drawer is being refreshed. During the processing of **wpRefreshDrawer**, wpSetDrawerHWND is called to set **hwnd** to **NULLHANDLE** while the objects are being recreated. It then calls wpSetDrawerHWND to set **hwnd** back to handle of the frame window for the drawer.

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 refreshed. */

wpRefreshDrawer(somSelf, ulDrawer);

Related Methods