Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called by PrintDlgEx when the system has finished initializing the General page of the Print Property Sheet.
Syntax
HRESULT InitDone();
Return value
Type: HRESULT
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 IObjectWithSite::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.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | commdlg.h (include Windows.h) |
| DLL | Comdlg32.dll |
See also
Conceptual
Reference