Compartilhar via


COlePasteSpecialDialog::COlePasteSpecialDialog

Constructs a COlePasteSpecialDialog object.

COlePasteSpecialDialog( 
   DWORD dwFlags = PSF_SELECTPASTE, 
   COleDataObject* pDataObject = NULL, 
   CWnd* pParentWnd = NULL  
);

Parameters

  • dwFlags
    Creation flag, contains any number of the following flags combined using the bitwise-OR operator:

    • PSF_SELECTPASTE   Specifies that the Paste radio button will be checked initially when the dialog box is called. Cannot be used in combination with PSF_SELECTPASTELINK. This is the default.

    • PSF_SELECTPASTELINK   Specifies that the Paste Link radio button will be checked initially when the dialog box is called. Cannot be used in combination with PSF_SELECTPASTE.

    • PSF_CHECKDISPLAYASICON   Specifies that the Display As Icon check box will be checked initially when the dialog box is called.

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

  • pDataObject
    Points to the COleDataObject for pasting. If this value is NULL, it gets the COleDataObject from the Clipboard.

  • 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

This function only constructs a COlePasteSpecialDialog object. To display the dialog box, call the DoModal function.

For more information, see the OLEUIPASTEFLAG enumerated type in the Windows SDK.

Requirements

Header: afxodlgs.h

See Also

Reference

COlePasteSpecialDialog Class

Hierarchy Chart

COleDataObject Class

COlePasteSpecialDialog::DoModal