Say, if I’m creating a dialog window from a resource in a C++/MFC project with Visual Studio, I can change the dialog box font and size from the resource editor. My question is how to do the same from a program?
Here’s a couple of screenshots:
Regular size:

Size 14:

PS. I can imagine that once the dialog window is created one won’t be able to change the font size, but what about before it’s created?
Wow, I had no idea that it’s so complicated. Here’s the solution I came up with to change font size and font face. It works for any dialog without resizing of individual dialog controls:
For MFC project:
Then the implementation itself:
Custom struct definition:
Here’s aux methods for parsing variable-size members:
And here’s how you call it:
For those who’s interested how it works, the method modifies the dialog template structure before creating the dialog and thus letting OS do all the font manipulations.