共用方式為


COleConvertDialog::COleConvertDialog

Constructs only a COleConvertDialog object.

explicit COleConvertDialog ( 
  COleClientItem* pItem, 
  DWORD dwFlags = CF_SELECTCONVERTTO, 
  CLSID* pClassID = NULL, 
  CWnd* pParentWnd = NULL  
);

Parameters

  • pItem
    Points to the item to be converted or activated.

  • dwFlags
    Creation flag, which contains any number of the following values combined using the bitwise-or operator:

    • CF_SELECTCONVERTTO   Specifies that the Convert To radio button will be selected initially when the dialog box is called. This is the default.

    • CF_SELECTACTIVATEAS   Specifies that the Activate As radio button will be selected initially when the dialog box is called.

    • CF_SETCONVERTDEFAULT   Specifies that the class whose CLSID is specified by the clsidConvertDefault member of the m_cv structure will be used as the default selection in the class list box when the Convert To radio button is selected.

    • CF_SETACTIVATEDEFAULT   Specifies that the class whose CLSID is specified by the clsidActivateDefault member of the m_cv structure will be used as the default selection in the class list box when the Activate As radio button is selected.

    • CF_SHOWHELPBUTTON   Specifies that the Help button will be displayed when the dialog box is called.

  • pClassID
    Points to the CLSID of the item to be converted or activated. If NULL, the CLSID associated with pItem will be used.

  • pParentWnd
    Points to the parent or owner window object (of type CWnd) to which the dialog object belongs. If it is NULL, the parent window of the dialog box is set to the main application window.

Remarks

To display the dialog box, call the DoModal function.

For more information, see CLSID Key and the OLEUICONVERT structure.

Requirements

Header: afxodlgs.h

See Also

Reference

COleConvertDialog Class

Hierarchy Chart

COleConvertDialog::DoModal

COleConvertDialog::m_cv