Jump to content

WpQueryObjectList: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpQueryObjectList}} 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 :Too..."
 
No edit summary
 
Line 26: Line 26:
==How to Override==
==How to Override==
This method is generally not overridden.
This method is generally not overridden.
==Usage==
This method is not covered in the provided text.
== Remarks ==
This method is not covered in the provided text.


==Example Code==
==Example Code==

Latest revision as of 03:46, 25 November 2025

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

Related Methods