wpAddMouseCometPage
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method adds the Comet Cursor page to the Setting notebook.
Syntax
_wpAddMouseCometPage(somSelf, hwndNotebook)
Parameters
- somSelf (WPMouse *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPMouse.
- hwndNotebook (HWND) - input
- Handle of the Settings notebook.
Returns
- ulPageId (ULONG) - returns
- Identifier for the inserted page.
- A return value of 0 indicates that the Comet Cursor page was not added to the Settings notebook.
How to Override
This method is always overridden to replace or remove the Comet Cursor page from an object that is a descendant of WPMouse. An override of this method does not call the parent.
Usage
This method is called only during wpAddSettingsPages processing.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPMouse *somSelf; /* Pointer to the object on which the method is being invoked. */ HWND hwndNotebook; /* Handle of the Settings notebook. */ ULONG ulPageId; /* Identifier for the inserted page. */ ulPageId = _wpAddMouseCometPage(somSelf, hwndNotebook);