wpQueryObjectList
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns a list of object buttons displayed on the Toolbar or drawer.
Syntax
_wpQueryObjectList(somSelf, ulDrawer, pulNumObjects)
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.
- pulNumObjects (PULONG) - output
- Pointer to the number of objects returned.
Returns
- hObject (HOBJECT *) - returns
- Pointer to an array of objects displayed on the Toolbar or drawers.
How to Override
This method is generally not overridden.
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. */
PULONG pulNumObjects; /* Pointer to the number of objects returned. */
HOBJECT *hObject; /* Pointer to an array of objects displayed on the Toolbar or drawers. */
hObject = _wpQueryObjectList(somSelf, ulDrawer,
pulNumObjects);