Jump to content

wpAddLaunchPadPage1

From EDM2

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

This instance method is called to add the Toolbar page 1 to the Settings notebook.

Syntax

_wpAddLaunchPadPage1(somSelf, hwndNotebook)

Parameters

somSelf (WPLaunchPad *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPLaunchPad.
hwndNotebook (HWND) - input
Handle to the Settings notebook.

Returns

rc (ULONG) - returns
Page identifier.
A return value of 0 indicates that an error occurred.

How to Override

This method should always be overridden to replace or remove the Toolbar page 1 from the Settings notebook of an object which is a descendant of WPLaunchPad. An override of this method does not call the parent.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPLaunchPad      *somSelf;        /* Pointer to the object on which the method is being invoked. */
HWND              hwndNotebook;  /* Handle to the Settings notebook. */
ULONG             rc;            /* Page identifier. */

rc = _wpAddLaunchPadPage1(somSelf, hwndNotebook);

Related Methods