Jump to content

wpAddFolderSelfClosePage

From EDM2
Revision as of 17:51, 1 September 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpAddFolderSelfClosePage}} 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...")
(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 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);

Related Methods