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.
#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);