Jump to content

wpAddNetworkPage

From EDM2

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

This instance method is called to allow the object to add the **Network** page to the remote printer object's Settings notebook.

Syntax

_wpAddNetworkPage(somSelf, hwndNotebook)

Parameters

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

Returns

rc (BOOL) - returns
Page identifier.
0: Error occurred.
PageId: Identifier for the inserted page.

Usage

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

How to Override

This method can be overridden to replace or remove the **Network** page from the object's Settings notebook.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPRPrinter    *somSelf;      /* Pointer to the object on which the method is being invoked. */
HWND           hwndNotebook; /* Settings notebook handle. */
BOOL           rc;           /* Page identifier. */

rc = _wpAddNetworkPage(somSelf, hwndNotebook);

Related Methods