Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I make a macro for this? Pin
Darren Schroeder26-Oct-01 10:04
Darren Schroeder26-Oct-01 10:04 
AnswerRe: How do I make a macro for this? Pin
Chris Losinger26-Oct-01 10:14
professionalChris Losinger26-Oct-01 10:14 
GeneralGDI Question Pin
26-Oct-01 10:02
suss26-Oct-01 10:02 
GeneralRe: GDI Question Pin
Christian Graus26-Oct-01 10:53
protectorChristian Graus26-Oct-01 10:53 
GeneralResizing a view Pin
26-Oct-01 9:36
suss26-Oct-01 9:36 
GeneralRe: Resizing a view Pin
Navin26-Oct-01 9:45
Navin26-Oct-01 9:45 
GeneralRe: Resizing a view Pin
26-Oct-01 10:07
suss26-Oct-01 10:07 
GeneralChinese (.. or any DBCS) font problems Pin
Navin26-Oct-01 8:56
Navin26-Oct-01 8:56 
I'm working on an app that can change languages at run-time. It can be run in English, or Chinese (and many others, but for simplicity's sake I'll focus on those.)

Anyhow, this app works fine in English on an English system, and fine in English or Chinese on a Chinese system. Problem results when running in Chinese on an English system. The fonts are there, and IE can display them fine.

The problem is that most dialog controls (e.g., CStatic, CButton) will *not* display the Chinese text right, even if I select a Chinese-encoded font into the control. What I get are what appear to be the DBCS strings in ASCII or something. In spite of this, a CEdit with the same font in the same dialog will work just fine!

One more thing - if I make my own control derived from, say, CStatic, and override OnPaint to display text myself, it works. Confused | :confused:

Anybody know what gives? Will I have to override the default controls that don't happen to work (CStatic, CButton) with my own controls? Is this a problem with MFC, or the underlying Windows controls?



The early bird may get the worm, but the second mouse gets the cheese.
GeneralRe: Chinese (.. or any DBCS) font problems Pin
Carlos Antollini26-Oct-01 9:03
Carlos Antollini26-Oct-01 9:03 
GeneralRe: Chinese (.. or any DBCS) font problems Pin
Navin26-Oct-01 9:43
Navin26-Oct-01 9:43 
Generalcalling applications in VC++ etc, Pin
JCY26-Oct-01 8:27
JCY26-Oct-01 8:27 
GeneralRe: calling applications in VC++ etc, Pin
Chris Losinger26-Oct-01 8:34
professionalChris Losinger26-Oct-01 8:34 
GeneralRe: calling applications in VC++ etc, Pin
Carlos Antollini26-Oct-01 8:56
Carlos Antollini26-Oct-01 8:56 
GeneralRe: calling applications in VC++ etc, Pin
Navin26-Oct-01 8:59
Navin26-Oct-01 8:59 
General(mfc) Checking a checkbox during CPropertyPage constructor Pin
Simon Walton26-Oct-01 6:27
Simon Walton26-Oct-01 6:27 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Chris Losinger26-Oct-01 6:42
professionalChris Losinger26-Oct-01 6:42 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Simon Walton26-Oct-01 7:13
Simon Walton26-Oct-01 7:13 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Carlos Antollini26-Oct-01 6:52
Carlos Antollini26-Oct-01 6:52 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Carlos Antollini26-Oct-01 6:54
Carlos Antollini26-Oct-01 6:54 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Carlos Antollini26-Oct-01 6:56
Carlos Antollini26-Oct-01 6:56 
GeneralCMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 6:06
vhalik26-Oct-01 6:06 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
Fazlul Kabir26-Oct-01 6:36
Fazlul Kabir26-Oct-01 6:36 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 6:39
vhalik26-Oct-01 6:39 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 6:57
vhalik26-Oct-01 6:57 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
Fazlul Kabir26-Oct-01 7:03
Fazlul Kabir26-Oct-01 7:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.