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

Clipboard issue

From: Першин Юрий <pershin_at_prosoftsystems.ru>
Date: 2007-10-17 14:49:50 CEST

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).

---
С уважением, Юрий Першин
Вед. инженер по технологиям обеспечения качества ПО
Прософт-Системы, Екатеринбург (тел. +7(343)-376-28-20, доб. 333)
 
BR, Y. Pershin
QA / AD lead engineer, ProSoft Systems,
YEKT - Russia
Received on Wed Oct 17 15:07:53 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.