I'm currently using winapi with C++ to make a program. When I was using the rc editor in Visual Stdio 2015 (the control is on a dialog), I found that there's no font changer for static text control. So, How to change the font of static text control (winapi)?
Thank You
It's not possible to change the font of a static control by modifying the resource file. You can only change the font of the whole dialog.
You can change the font of a static control in runtime, by sending the WM_SETFONT
message. A font can be created by the CreateFontIndirect
function, for example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.