Freigeben über


CRichEditCtrl::CanPaste

BOOL CanPaste( UINT nFormat = 0 ) const;

Return Value

Nonzero if the Clipboard format can be pasted; otherwise 0.

Parameters

nFormat

The Clipboard data format to query. This parameter can be one of the predefined Clipboard formats or the value returned by .

Remarks

Call this function to determine if the rich edit control can paste the specified Clipboard format. If nFormat is 0, CanPaste will try any format currently on the Clipboard.

For more information, see message and function in the Win32 documentation.

Example

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

// Paste the clipboard data if possible.
if (pmyRichEditCtrl->CanPaste())
{
   pmyRichEditCtrl->Paste();
}

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::Paste, CRichEditCtrl::PasteSpecial