Solved

Fonts of different languages.

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 42
abstract class with all non abstract mentods 6 76
make top menus bigger font 3 65
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 552
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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…

770 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