Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

COleChangeIconDialog::DoModal

Call this function to display the OLE Change Icon dialog box.

virtual INT_PTR DoModal( );

Return Value

Completion status for the dialog box. One of the following values:

  • IDOK if the dialog box was successfully displayed.
  • IDCANCEL if the user canceled the dialog box.
  • IDABORT if an error occurred. If IDABORT is returned, call the COleDialog::GetLastError member function to get more information about the type of error that occurred. For a listing of possible errors, see the OleUIChangeIcon function in the Platform SDK.

Remarks

If you want to initialize the various dialog box controls by setting members of the m_ci structure, you should do this before calling DoModal, but after the dialog object is constructed.

If DoModal returns IDOK, you can call other member functions to retrieve the settings or information that was input by the user into the dialog box.

See Also

COleChangeIconDialog Overview | Class Members | Hierarchy Chart | COleDialog::GetLastError | CDialog::DoModal | COleChangeIconDialog::m_ci | COleChangeIconDialog::DoChangeIcon | COleChangeIconDialog::GetIconicMetafile

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.