WpAddObjectWindowPage: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpAddObjectWindowPage}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method adds the '''Standard Options''' page to the Settings notebook. ==Syntax== _wpAddObjectWindowPage(somSelf, hwndNotebook) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ;''hwndNotebook'' (HWND) - input :Handle of the Settin..." |
(No difference)
|
Latest revision as of 17:41, 1 September 2025
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method adds the Standard Options page to the Settings notebook.
Syntax
_wpAddObjectWindowPage(somSelf, hwndNotebook)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- hwndNotebook (HWND) - input
- Handle of the Settings notebook.
Returns
- rc (ULONG) - returns
- Page identifier.
- A return value of 0 indicates that an error occurred.
How to Override
This method is always overridden to replace or remove the Standard Options page from an object that is a descendant of WPObject. An override of this method does not call the parent.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ HWND hwndNotebook; /* Handle of the Settings notebook. */ ULONG rc; /* Page identifier. */ rc = _wpAddObjectWindowPage(somSelf, hwndNotebook);