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
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