M
moise.zapater
Hi,
I'm developping a MS Outlook COM Add-in. Creating my custom office
toolbar, I use the Office::_CommandBarButton->PasteFace() function to
add an icon to a button.
Every thing works fine while the Office Clipboard is not full.
Here is my code:
// put bitmap into Clipboard
::OpenClipboard(NULL);
::EmptyClipboard();
::SetClipboardData(CF_BITMAP, (HANDLE)hBmp);
::CloseClipboard();
:eleteObject(hBmp);
// Set icon
hr = spCmdButton->PasteFace();
The EmptyClipboard() function clear the Windows' clipboard not the
Office one.
So here are my questions:
Anybody has already managed this kind of issue?
Is there a way to clear the office clipboard?
Is there a way to use the windows clipboard rather than the office
one?
Thanks,
Moses
I'm developping a MS Outlook COM Add-in. Creating my custom office
toolbar, I use the Office::_CommandBarButton->PasteFace() function to
add an icon to a button.
Every thing works fine while the Office Clipboard is not full.
Here is my code:
// put bitmap into Clipboard
::OpenClipboard(NULL);
::EmptyClipboard();
::SetClipboardData(CF_BITMAP, (HANDLE)hBmp);
::CloseClipboard();
:eleteObject(hBmp);
// Set icon
hr = spCmdButton->PasteFace();
The EmptyClipboard() function clear the Windows' clipboard not the
Office one.
So here are my questions:
Anybody has already managed this kind of issue?
Is there a way to clear the office clipboard?
Is there a way to use the windows clipboard rather than the office
one?
Thanks,
Moses