Click here to Skip to main content
15,867,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copy text in Memory DC. Pin
CPallini27-May-09 0:23
mveCPallini27-May-09 0:23 
GeneralRe: Copy text in Memory DC. Pin
zakkas248327-May-09 0:37
zakkas248327-May-09 0:37 
GeneralRe: Copy text in Memory DC. Pin
CPallini27-May-09 0:57
mveCPallini27-May-09 0:57 
Questionhow to attach horizontal scroll bar to combo box control Pin
saksp26-May-09 23:57
saksp26-May-09 23:57 
AnswerRe: how to attach horizontal scroll bar to combo box control Pin
Nibu babu thomas27-May-09 1:18
Nibu babu thomas27-May-09 1:18 
QuestionVS2005 backward compatibility Pin
Sunil P V26-May-09 23:40
Sunil P V26-May-09 23:40 
QuestionHow to use Win32_Tpm class method? Pin
aishui090526-May-09 23:38
aishui090526-May-09 23:38 
QuestionHow to calculate string width and height in pixel. Pin
pandit8426-May-09 23:25
pandit8426-May-09 23:25 
I need to find out the width and height (in pixel/ in any logical unit) of a string.

I am using GetTextExtentPoint32() API to calculate the string size. But it is observed that the GetTextExtentPoint32() is giving me the different size , if execute my application on different language OS. After some analysis it is observed that font size and font face value is affecting the size of a string, so i have set the font face and font size to the DC.But still due to different CHARSET value available on different language OS i am getting different size of a string. Please let me know how to handle this issue, so that i can get same value of a string (string from any language) for different language OS.
I wrote the method as below:
LPSIZE lpSize = new SIZE () ;

void MyAPI( CString szLangStr , lpSize )
{
	....
}


So the expected out put the width and height of szLangStr and which should be same for all the language OS.
QuestionRe: How to calculate string width and height in pixel. Pin
CPallini26-May-09 23:48
mveCPallini26-May-09 23:48 
AnswerRe: How to calculate string width and height in pixel. Pin
molesworth27-May-09 0:00
molesworth27-May-09 0:00 
AnswerRe: How to calculate string width and height in pixel. Pin
David Crow27-May-09 3:45
David Crow27-May-09 3:45 
JokeRe: How to calculate string width and height in pixel. Pin
Stuart Dootson27-May-09 5:12
professionalStuart Dootson27-May-09 5:12 
JokeRe: How to calculate string width and height in pixel. Pin
Rajesh R Subramanian27-May-09 21:14
professionalRajesh R Subramanian27-May-09 21:14 
QuestionMFC VS2005 example Pin
Lju226-May-09 23:23
Lju226-May-09 23:23 
AnswerRe: MFC VS2005 example Pin
BangQ26-May-09 23:35
BangQ26-May-09 23:35 
AnswerRe: MFC VS2005 example Pin
Hamid_RT26-May-09 23:45
Hamid_RT26-May-09 23:45 
GeneralRe: MFC VS2005 example Pin
Lju227-May-09 0:27
Lju227-May-09 0:27 
GeneralRe: MFC VS2005 example Pin
Hamid_RT27-May-09 1:17
Hamid_RT27-May-09 1:17 
GeneralRe: MFC VS2005 example Pin
Lju227-May-09 1:19
Lju227-May-09 1:19 
QuestionOnKillFocus for frame windows Pin
prithaa26-May-09 23:01
prithaa26-May-09 23:01 
AnswerRe: OnKillFocus for frame windows Pin
«_Superman_»27-May-09 2:45
professional«_Superman_»27-May-09 2:45 
GeneralRe: OnKillFocus for frame windows Pin
prithaa28-May-09 0:59
prithaa28-May-09 0:59 
QuestionSize variation for a window Pin
prithaa26-May-09 22:45
prithaa26-May-09 22:45 
AnswerRe: Size variation for a window Pin
zakkas248327-May-09 0:29
zakkas248327-May-09 0:29 
Questioncould you help me? I need a example about how to using CSocket with mfc Pin
electric00926-May-09 22:10
electric00926-May-09 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.