Line spacing in EditBox

How can I provide variable (say 1.5) line spacing (like the ones used in MS Word) in an edit box?
Can this be done?
Thanks.
p1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SHULTZConnect With a Mentor Commented:
Edit box does not have this capability.
You need to use CRichEditCtrl.
0
 
Answers2000Commented:
If you're creating a multi-font text editor, take a look at CRichEditCtrl.

With an edit control, you can (maybe) get something close:
Create a font using the LOGFONT structure (CreateFontIndirect API or CFont member), and in this you can specify how high you want each character cell (and if you know the only font available which is smaller and has the required precisionn is 2/3 as big).


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.