Solved

Fonts of different languages.

Posted on 1998-09-05
4
182 Views
Last Modified: 2013-12-03
For a particular language, say Chinese, how a sentence can be displayed in VC++?
0
Comment
Question by:jalaja
4 Comments
 
LVL 2

Expert Comment

by:prasanth
ID: 1321744
Can you be more specific? Do you want to make dialog boxes that use, ie. Chinese?
0
 

Author Comment

by:jalaja
ID: 1321745
Let me explain you more clearly.
say, you have a menu like this:

China  France  Germany

When I press China, a sentence is to be displayed in chinese language.
When I press France, a sentence is to be displayed in French language.
When I press Germany, a sentence is to be displayed in German language.

Hope this time I made it very clear. Expecting your reply
Thanks in Advance
jalaja
====

0
 

Accepted Solution

by:
jinda earned 100 total points
ID: 1321746
Assume your language-specific sentences are store in Database table or files. When you select a particular language, you load the sentence from database table or file, then show it on your program. If you have the static control to show your sentence, you can call SetDlgItemText( ...); If you want to modify string in menu item, do the following:

CString strMyChineseString;

//Assume you have function to get your Chinese string.
strMyChineseString = YourFunctionToGetYourChineseString();

//ID_SETUP_LANGEUAGE_CHEINSE is the ID of your menu item.
pMenu->ModifyMenu( ID_SETUP_LANGUAGE_CHINESE, MF_BYCOMMAND | MF_STRING, ID_SETUP_LANGUAGE_CHINESE, strChineseString );


Do I answer your question?

0
 

Expert Comment

by:thinh
ID: 1321747
I guess You have to use Owner-Draw(FM_OWNERDRAW) menu do that.

Thinh Truong.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with Frankling Gothic Book font 5 85
method notes when mouse over in eclipse 5 83
while loop over for loop 7 93
haveThree challenge 22 114
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now