This example uses the IsClipboardDataAvailable method to determine whether there is data on the Clipboard. If True, it enables the Paste item on the Edit menu.
void CImgEdit2Dlg::OnEnablepaste()
{
// This example uses the IsClipboardDataAvailable method
// to determine whether to enable the Paste menu item on
// the Edit menu.
int nlnClipData;
nlnClipData = ImgEdit1.IsClipboardDataAvailable();
if(nlnClipData)
AfxMessageBox("Paste Enabled");
else
AfxMessageBox("Paste Disabled");
}