R
R
Rihor2014-01-15 10:56:33
C++ / C#
Rihor, 2014-01-15 10:56:33

How to set line spacing in richtextbox in visual studio c++?

Good day!
The following question arose .. how can I set line spacing in richtextbox, I write in c ++, visual studio 2012.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Trrrrr, 2014-01-15
@Trrrrr

CHARFORMAT fmt;
 fmt.cbSize=sizeof(fmt);
 fmt.dwMask= CFM_OFFSET;
 fmt.yOffset=100;

Here is an offset game that can help you.
then the message was sent to the window:
SendMessage(pRichEd->m_hWnd, EM_SETCHARFORMAT,SCF_ALL,(LPARAM)(&fmt));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question