Calculating the Number of Charcters in a Line Of a MultiLine Dialog Box
-
-
Hi, I have a Multiline Dialog Box would anyone have the sequence of Win32 SDK API calls to calculate/set the number of characters in a Line of a Multiline Dialog Box BTW I am using Rich Edit 2.0 though I don't think this has any bearing on my question
i guess it's done automatically
Don't try it, just do it! ;-)
-
Hi, I have a Multiline Dialog Box would anyone have the sequence of Win32 SDK API calls to calculate/set the number of characters in a Line of a Multiline Dialog Box BTW I am using Rich Edit 2.0 though I don't think this has any bearing on my question
what about CRichEditCtrl::GetTextLength() ? how dumb of me... shoulda read the whole thing. what about getting the whole text and looking for CR-LF and counting the characters between them ?
This signature was proudly tested on animals.
-
what about CRichEditCtrl::GetTextLength() ? how dumb of me... shoulda read the whole thing. what about getting the whole text and looking for CR-LF and counting the characters between them ?
This signature was proudly tested on animals.
I am using Plains old C so EM_LINELENGTH But if I cann't fit the Number of Characters I want on the Line I would to some how want to make the font smaller ??? I guess I shoud re-prhase the question if I for Instance want 12 characters on one line of a MultiLine Dialog Box How Can I calculate/set the right Font ??