Solved

Line spacing in EditBox

Posted on 1998-09-23
2
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

717 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