wpAddFolderSelfClosePage
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system. This instance method adds the Folder Automatic Close page to the Settings notebook.
Syntax
_wpAddFolderSelfClosePage(somSelf, hwndNotebook);
Parameters
- somSelf (WPFolder *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPFolder.
- 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 Folder Automatic Close page was not added to the Settings notebook.
How to Override
This method is always overridden to replace or remove the Folder Automatic Close page from an object that is a descendant of WPFolder. An override of this method does not call the parent.
Example Code
Definition:
#define INCL_WINWORKPLACE #include <os2.h> WPFolder *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 = _wpAddFolderSelfClosePage(somSelf, hwndNotebook);