Do I have to call ::OpenClipboard(NULL) and ::CloseClipboard() during copy/paste?


J

JD

Hi,

Do I have to call ::OpenClipboard(NULL) and ::CloseClipboard() when I call CComPtr<Word::Selection>'s Copy and Paste? I suppose that MS should do that for us internally? If not, is the following sequence correct? Your help is much appreciated.

::OpenClipboard(NULL);
::EmptyClipboard();
sel->Copy(); // sel is a CComPtr<Word::Selection>
::CloseClipboard();

..................

::OpenClipboard(NULL);
sel->Paste();
::CloseClipboard();

JD
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top