store the clipboard format and content in a structure, restore it when needed. there is some code snippet "Example of a Clipboard Viewer" in MSDN http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard/usingtheclipboard.asp
there is some code snippet "Example of a Clipboard Viewer" in MSDN
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard/usingtheclipboard.asp
static CWnd* PASCAL GetClipboardOwner()//获得系统剪贴板所有者相关窗口指针
SetClipboardViewer
GetOpenClipboardWindow
GetClipboardViewer
OpenClipoard
SetClipboardData(UNIT Format,HANDLE hMem)
大概用到这几个函数
你自己去查MSDN吧