Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: unicode const string must be like: L"abc"? Pin
followait27-Apr-08 19:48
followait27-Apr-08 19:48 
AnswerRe: unicode const string must be like: L"abc"? Pin
Ozer Karaagac27-Apr-08 10:51
professionalOzer Karaagac27-Apr-08 10:51 
GeneralI want to generate a list of all combinatons i.e nCr combinations Pin
Member 465568526-Apr-08 22:01
Member 465568526-Apr-08 22:01 
AnswerRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Maruf Maniruzzaman27-Apr-08 1:57
Maruf Maniruzzaman27-Apr-08 1:57 
GeneralRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Member 465568527-Apr-08 2:16
Member 465568527-Apr-08 2:16 
GeneralRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Saurabh.Garg27-Apr-08 2:52
Saurabh.Garg27-Apr-08 2:52 
GeneralRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Saurabh.Garg27-Apr-08 2:18
Saurabh.Garg27-Apr-08 2:18 
QuestionHow to get text extent in a rich edit control? Pin
Philstix26-Apr-08 18:14
Philstix26-Apr-08 18:14 
Hi,

I'm trying to determine the extent of a line of text in a rich edit control via Windows API calls.

In any other control I'd use GetTextExtentPoint32(), after sending the control a WM_GETFONT message and selecting the resulting font handle into the control's device context.

The problem is that rich edit controls don't support the WM_GETFONT message, and I haven't been able to find any other way of getting a handle to the active font.

The EM_GETCHARFORMAT message provides some details about the font, but not a font handle and not enough information to create a duplicate font handle via CreateFontIndirect().

I've been banging my head on this one for about a day now, so any help would be greatly appreciated.

Thanks,

Phil
GeneralRe: How to get text extent in a rich edit control? Pin
Gary R. Wheeler27-Apr-08 2:42
Gary R. Wheeler27-Apr-08 2:42 
GeneralRe: How to get text extent in a rich edit control? Pin
Philstix27-Apr-08 10:17
Philstix27-Apr-08 10:17 
Generalequivalent vc++ class for a vb class Pin
lahom26-Apr-08 12:54
lahom26-Apr-08 12:54 
GeneralRe: equivalent vc++ class for a vb class Pin
Saurabh.Garg26-Apr-08 15:52
Saurabh.Garg26-Apr-08 15:52 
GeneralRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac27-Apr-08 3:01
professionalOzer Karaagac27-Apr-08 3:01 
GeneralRe: equivalent vc++ class for a vb class Pin
lahom3-May-08 8:45
lahom3-May-08 8:45 
RantRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac3-May-08 10:59
professionalOzer Karaagac3-May-08 10:59 
GeneralRe: equivalent vc++ class for a vb class Pin
lahom3-May-08 11:32
lahom3-May-08 11:32 
GeneralRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac3-May-08 12:25
professionalOzer Karaagac3-May-08 12:25 
GeneralRe: equivalent vc++ class for a vb class Pin
lahom3-May-08 12:49
lahom3-May-08 12:49 
GeneralRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac3-May-08 13:35
professionalOzer Karaagac3-May-08 13:35 
GeneralRe: equivalent vc++ class for a vb class Pin
lahom3-May-08 14:13
lahom3-May-08 14:13 
GeneralRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac3-May-08 14:49
professionalOzer Karaagac3-May-08 14:49 
GeneralRe: equivalent vc++ class for a vb class Pin
lahom4-May-08 3:25
lahom4-May-08 3:25 
QuestionRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac4-May-08 13:05
professionalOzer Karaagac4-May-08 13:05 
AnswerRe: equivalent vc++ class for a vb class Pin
lahom4-May-08 13:28
lahom4-May-08 13:28 
AnswerRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac4-May-08 15:05
professionalOzer Karaagac4-May-08 15:05 

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.