Jump to content

wpAddDDEPage

From EDM2
Revision as of 16:18, 28 May 2025 by Martini (talk | contribs) (Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

This instance method is called to add the DDE Details page to the Settings notebook.

Syntax

_wpAddDDEPage(somSelf, hwndNotebook)

Parameters

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

Returns

ulPageid (ULONG) - returns
Identifier for the inserted page.
A return value of 0 indicates that the DDE details page was not added to the Settings notebook.

How to Override

This method should always be overridden to replace or remove the Dynamic Data Exchange (DDE) Details page from an object which is a descendant of WPWinConfig. An override of this method does not call the parent.

Usage

This method can be called at any time.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPWinConfig     *somSelf;       /*  Pointer to the object on which the method is being invoked. */
HWND             hwndNotebook;  /*  Handle to the Settings notebook. */
ULONG            ulPageid;      /*  Identifier for the inserted page. */

ulPageid = _wpAddDDEPage(somSelf, hwndNotebook);

Related Methods