IPrintDialogCallback::InitDone

[This is preliminary documentation and subject to change.]

The PrintDlgEx function calls the InitDone method when the system has finished initializing the General page of the Print property sheet.

HRESULT InitDone();
 

Parameters

None.

Return Values

Return S_OK to prevent the PrintDlgEx function from performing its default actions.

Return S_FALSE to allow PrintDlgEx to perform its default actions. Currently, PrintDlgEx does not perform any default processing after the InitDone call.

Remarks

If your callback object implements the IObjectWithSite interface, the PrintDlgEx function calls the IObjectWithSite::SetSite method to pass an IPrintDialogServices pointer to the callback object. The PrintDlgEx function calls the SetSite method before calling the InitDone method. This enables your InitDone implementation to use the IPrintDialogServices methods to retrieve information about the currently selected printer.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in commdlg.h.

See Also

Common Dialog Box Library Overview, IPrintDialogCallback, IObjectWithSite, IPrintDialogServices, PrintDlgEx