Partager via


COleChangeIconDialog::COleChangeIconDialog

This function constructs only a COleChangeIconDialog object.

explicit COleChangeIconDialog( 
   COleClientItem* pItem, 
   DWORD dwFlags = CIF_SELECTCURRENT, 
   CWnd* pParentWnd = NULL  
);

Parameters

  • pItem
    Points to the item to be converted.

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

    • CIF_SELECTCURRENT   Specifies that the Current radio button will be selected initially when the dialog box is called. This is the default.

    • CIF_SELECTDEFAULT   Specifies that the Default radio button will be selected initially when the dialog box is called.

    • CIF_SELECTFROMFILE   Specifies that the From File radio button will be selected initially when the dialog box is called.

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

    • CIF_USEICONEXE   Specifies that the icon should be extracted from the executable specified in the szIconExe field of m_ci instead of retrieved from the type. This is useful for embedding or linking to non-OLE files.

  • 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 will be set to the main application window.

Remarks

To display the dialog box, call the DoModal function.

For more information, see the OLEUICHANGEICON structure in the Windows SDK.

Requirements

Header: afxodlgs.h

See Also

Concepts

COleChangeIconDialog Class

COleChangeIconDialog Members

Hierarchy Chart

COleClientItem Class

COleChangeIconDialog::DoModal