Jump to content

wpAddMousePtrPage

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method adds the Mouse Pointer Customization page to the Setting notebook.

Syntax

_wpAddMousePtrPage(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 Mouse Pointer Customization page was not added to the Settings notebook.

How to Override

This method is always overridden to replace or remove the Mouse Pointer Customization 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 = _wpAddMousePtrPage(somSelf, hwndNotebook);

Related Methods