LPCQPAGEPROC callback function (cmnquery.h)

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.

Syntax

LPCQPAGEPROC Lpcqpageproc;

HRESULT Lpcqpageproc(
  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 value

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

Requirements

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

See also

CQAddPagesProc

CQPAGE

Common Query Page Messages

IQueryForm::AddPages