Solved

Fonts of different languages.

Posted on 1998-09-05
4
181 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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…

760 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

21 Experts available now in Live!

Get 1:1 Help Now