CQPAGE structure (cmnquery.h)

The CQPAGE structure is used to define a query page added to a form in the query dialog box with the CQAddPagesProc callback function.

Syntax

typedef struct _cqpage {
  DWORD        cbStruct;
  DWORD        dwFlags;
  LPCQPAGEPROC pPageProc;
  HINSTANCE    hInstance;
  INT          idPageName;
  INT          idPageTemplate;
  DLGPROC      pDlgProc;
  LPARAM       lParam;
} CQPAGE, *LPCQPAGE;

Members

cbStruct

Contains the size, in bytes, of the structure.

dwFlags

Reserved. This member must be zero.

pPageProc

Pointer to a query page callback function defined by the query form extension. This callback function is used to notify the extension of events in the page and takes the form of the CQPageProc callback function.

hInstance

Contains the instance handle of the module that contains the resources identified by the idPageName and idPageTemplate members.

idPageName

Contains the identifier of the string resource in hInstance used for the page title.

idPageTemplate

Contains the identifier of the dialog resource in hInstance used for the page dialog.

pDlgProc

Pointer to the dialog box procedure. For more information, see DialogProc.

lParam

An extension-defined 32-bit value passed in the lParam member of the CQPAGE structure passed as the pPage parameter in the CQPageProc callback function.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header cmnquery.h

See also

CQAddPagesProc

CQPageProc

DialogProc

Display Structures in Active Directory Domain Services

IQueryForm::AddPages