Solved

Fonts of different languages.

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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…
Suggested Courses

751 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