[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Clipboard issue

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-10-17 17:43:03 CEST

Першин Юрий wrote:
> Everytime you put non-unicode CF_TEXT into CB you should act like this:
> SetClipboardData(CF_TEXT,hClipboardData);
> *LCID *lcid = static_cast<LCID*>(GlobalAlloc(GMEM_DDESHARE, sizeof(LCID)));
> *lcid = GetUserDefaultLCID();
> SetClipboardData(CF_LOCALE, static_cast<HANDLE>(lcid));*
> CloseClipboard();
> Otherwise locale-specific characters may be lost (depends upon keyboard
> switcher state).

The docs for SetClipboardData state that:

"When you close the clipboard, if it contains CF_TEXT data but no
CF_LOCALE data, the system automatically sets the CF_LOCALE format to
the current input language."


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Oct 17 17:44:43 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.