Directory Services

CQPageProc

The CQPageProc callback function is called by the query dialog box to notify the query form extension of events that occur in a query page. A pointer to this function is supplied to the query dialog box in the pPageProc member of the CQPAGE structure. CQPageProc is a placeholder for the query form extension-defined function name.

HRESULT CALLBACK CQPageProc(
  LPCQPAGE pPage,
  HWND hwnd,
  UINT uMsg,
  WPARAM wParam,
  LPARAM lParam
);

Parameters

pPage
Pointer to a CQPAGE structure that contains data about a query page.
hwnd
Contains the window handle of the query page.
uMsg
Contains a value that identifies the event that this function is called for. This can be one of the Common Query Page Messages.
wParam
Contains additional message data. The contents of this parameter depend on the value of the uMsg parameter.
lParam
Contains additional message data. The content of this parameter depends on the value of the uMsg parameter.

Return Values

The return value is the result of the message and depends on the value of the uMsg parameter.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Cmnquery.h.

See Also

CQPAGE, CQAddPagesProc, Common Query Page Messages, IQueryForm::AddPages