How do i change the size of the text typed in the edit control of a single line for an example?
This is a discussion on Edit Controls Text Font within the Windows Programming forums, part of the Platform Specific Boards category; How do i change the size of the text typed in the edit control of a single line for an ...
How do i change the size of the text typed in the edit control of a single line for an example?
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
When you're done with it, free it (remember that the font has to stay alive for as long as you're using it on your control, though).
If you're using C++, RAII may help you do that.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Yeah, when drawing, but not when setting a font for a control, though.
If you put the font into a control, you'll have to detach it first and then delete it, I think.
Same for SelectObject. If you select it, then select back the old one before deleting it.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Well, I told you "do not delete it while you are using it."
You mustn't delete the font while the control is using it.
When you don't need it anymore, THEN you can delete it.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^