Solved

Line spacing in EditBox

Posted on 1998-09-23
2
312 Views
Last Modified: 2013-11-19
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.
0
Comment
Question by:p1
2 Comments
 
LVL 8

Expert Comment

by:Answers2000
ID: 1322486
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
 

Accepted Solution

by:
SHULTZ earned 30 total points
ID: 1322487
Edit box does not have this capability.
You need to use CRichEditCtrl.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
configuration management 2 99
VB.NET how to use the Vertical ScrollBar 5 87
Add content to output file 4 57
FizzBuzz challenge 9 73
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now