Discussion:
CTextBox font size
(too old to reply)
MFDonadeli
2011-10-07 16:59:56 UTC
Permalink
Hi,

How do I increase font size of a CTextBox.

I try this, but the cursor gets bigger but not the font:

CFont ft;
ft.CreateFont(40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, L"Verdana");
m_txtSize.SetFont(&ft);

Thank for helping
MFDonadeli
2011-10-07 17:20:02 UTC
Permalink
Ok.

I found a solution. CFont must exists while CTextBox exists. So I put
it in my class.

Loading...