WpAddDDEPage: Difference between revisions
Appearance
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:wpAddDDEPage}} | ||
This method is specific to version 3, or higher, of the OS/2 operating system. | This method is specific to version 3, or higher, of the OS/2 operating system. | ||
Line 7: | Line 7: | ||
==Parameters== | ==Parameters== | ||
;somSelf (WPWinConfig *) - input | ;''somSelf'' ([[WPWinConfig]] *) - input | ||
:Pointer to the object on which the method is being invoked. | :Pointer to the object on which the method is being invoked. | ||
:Points to an object of class WPWinConfig. | :Points to an object of class WPWinConfig. | ||
;hwndNotebook (HWND) - input:Handle to the Settings notebook. | ;''hwndNotebook'' ([[HWND]]) - input:Handle to the Settings notebook. | ||
==Returns== | ==Returns== | ||
;ulPageid (ULONG) - returns:Identifier for the inserted page. | ;''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. | :A return value of 0 indicates that the DDE details page was not added to the Settings notebook. | ||
Latest revision as of 16:18, 28 May 2025
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);