求一个关于清空鼠标右键中粘贴,撤消**等 的程序
问题描述:每次进行了“复制”、“剪切”、“删除”、“改名”等操作后,鼠标右键中相应的就有“撤消**”、“粘贴”等选项,我就想各位能人用C++编个程序来将其清空(我以前见过同学用VB做过这种东西的,现在就是想要个C++的)<如此问题有什么描述清楚的地方,请提出来>
[此贴子已经被作者于2007-6-7 19:39:22编辑过]
看这个行不行:
EmptyClipboard
The EmptyClipboard function empties the clipboard and frees handles to data in the clipboard. The function then assigns ownership of the clipboard to the window that currently has the clipboard open.
BOOL EmptyClipboard(VOID)
Parameters
This function has no parameters.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
Before calling EmptyClipboard, an application must open the clipboard by using the OpenClipboard function. If the application specifies a NULL window handle when opening the clipboard, EmptyClipboard succeeds but sets the clipboard owner to NULL.