Partager via


COleInsertDialog::COleInsertDialog

This function constructs only a COleInsertDialog object.

COleInsertDialog ( 
   DWORD dwFlags = IOF_SELECTCREATENEW, 
   CWnd* pParentWnd = NULL  
);

Parameters

  • dwFlags
    Creation flag that contains any number of the following values to be combined using the bitwise-OR operator:

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

    • IOF_SELECTCREATENEW   Specifies that the Create New radio button will be selected initially when the dialog box is called. This is the default and cannot be used with IOF_SELECTCREATEFROMFILE.

    • IOF_SELECTCREATEFROMFILE   Specifies that the Create From File radio button will be selected initially when the dialog box is called. Cannot be used with IOF_SELECTCREATENEW.

    • IOF_CHECKLINK   Specifies that the Link check box will be checked initially when the dialog box is called.

    • IOF_DISABLELINK   Specifies that the Link check box will be disabled when the dialog box is called.

    • IOF_CHECKDISPLAYASICON   Specifies that the Display As Icon check box will be checked initially, the current icon will be displayed, and the Change Icon button will be enabled when the dialog box is called.

    • IOF_VERIFYSERVERSEXIST   Specifies that the dialog box should validate the classes it adds to the list box by ensuring that the servers specified in the registration database exist before the dialog box is displayed. Setting this flag can significantly impair performance.

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

Remarks

To display the dialog box, call the DoModal function.

Requirements

Header: afxodlgs.h

See Also

Reference

COleInsertDialog Class

Hierarchy Chart

COleInsertDialog::DoModal