LPCQADDFORMSPROC callback function (cmnquery.h)

The CQAddFormsProc callback function is called by a query form extension to add a form to the query dialog box. A pointer to this function is supplied to the query form extension in the pAddFormsProc parameter of the IQueryForm::AddForms method. CQAddFormsProc is a placeholder for the query handler-defined function name.

Syntax

LPCQADDFORMSPROC Lpcqaddformsproc;

HRESULT Lpcqaddformsproc(
  LPARAM lParam,
  LPCQFORM pForm
)
{...}

Parameters

lParam

Contains a 32-bit value defined by the query handler. This value is passed to the query form extension as the lParam parameter in the IQueryForm::AddForms call.

pForm

Pointer to a CQFORM structure that defines the form to add.

Return value

Returns an HRESULT value that indicates the success, or failure, of the form add operation. The following list lists possible return values.

Requirements

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

See also

CQFORM

IQueryForm::AddForms