thanks for wine
qingdoa daoo
qingdao33122 at yahoo.com
Fri May 12 17:24:13 CDT 2006
A simple test
-----------------------------
#include "windows.h"
int APIENTRY WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmd, int show)
{
HGLOBAL hmem;
LPSTR lpstr;
OpenClipboard(GetDesktopWindow());
EmptyClipboard();
hmem = GlobalAlloc(GMEM_MOVEABLE, 6);
lpstr = GlobalLock(hmem);
lstrcpy(lpstr, "Hello");
GlobalUnlock(hmem);
SetClipboardData(CF_TEXT, hmem);
CloseClipboard();
return 0;
}
--- Ulrich Czekalla <ulrich.czekalla at utoronto.ca>дµÀ:
> On Fri, May 12, 2006 at 04:16:28PM +0800, qingdoa daoo wrote:
> > Now that you brought it up, clipboard in wine does have some limitations. e.g.
> > when a process calls OpenClipboard(hwnd), Windows doesn't seem to care if the
> > hwnd is owned by a thread of the calling process. A process doesn't even have
> > to have a window in order to grab the clipboard and put something on it. It
> > can just use the desktop window. Not so with wine.
>
> This should work in wine as well. Do you have a test case?
>
> /Ulrich
>
___________________________________________________________
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡
http://cn.mail.yahoo.com
More information about the wine-devel
mailing list