Jump to content

wpAddSnoop1Page

From EDM2

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

This instance method is called to allow an object to add the Detection Level page to the settings notebook.

Syntax

_wpAddSnoop1Page(somSelf, hwndNotebook);

Parameters

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

Returns

rc (ULONG) - returns
Page identifier.
A return value of 0 indicates that an error occurred.
PageId: Identifier for the inserted page.

Usage

This method must be called only from within an override of the wpAddSettingsPages method.

How to Override

This method should always be overridden to replace or remove the Detection Level page from the object's Settings notebook. To remove the page from the settings notebook, the override method must return SETTINGS_PAGE_REMOVED without calling the parent method. To replace the page with another page, the override method must call the wpAddSettingsPages method without calling the parent method.

Example Code

This example overrides the method to eliminate this page from the object's Settings notebook.

SOM_Scope ULONG SOMLINK MyObj_wpAddSnoop1Page(MyObj *somSelf,
                                                HWND hwndNotebook)

{
    /* MyObjData *somThis = MyObjGetData(somSelf); */
    MyObjMethodDebug("MyObj","MyObj_wpAddSnoop1Page");

    /* return(parent_wpAddSnoop1Page(somSelf,hwndNotebook)); */

    return(SETTINGS_PAGE_REMOVED);
}

Related Methods