Solved

Fonts of different languages.

Posted on 1998-09-05
4
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…

615 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