1、看clear里面做了什么,把代码复制过来<br>2、自己监控剪贴版,好象有个函数SetClipboardData,EmptyClipboard ,这两个函数都需要先OpenClipboard,具体看MSDN<br><br>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard.asp<br><br>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. <br><br>Syntax<br><br>BOOL EmptyClipboard( VOID <br>);<br>Parameters<br><br>This function has no parameters.<br>Return Value<br><br>If the function succeeds, the return value is nonzero.<br><br>If the function fails, the return value is zero. To get extended error information, call GetLastError. <br><br><br><br><br>Remarks<br><br>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. Note that this causes SetClipboardData to fail. <br><br>For an example, see Copying Information to the Clipboard.<br><br>Function Information<br><br>Minimum DLL Version user32.dll <br>Header Declared in Winuser.h, include Windows.h <br>Import library User32.lib <br>Minimum operating systems Windows 95, Windows NT 3.1 <br><br>See Also<br><br>Clipboard, OpenClipboard, SetClipboardData, WM_DESTROYCLIPBOARD<br><br>兄弟,你这20分真超值啊