66. How do I change the font(s) in an MFC application dialog?
Pretty easy this, but not obvious. Sure, it looks like all you have to do is
send a WM_SETFONT message, and that's true, but you need the new font in order to
send the message. So we have a create a font object, and make sure it stays
alive for long enough so that the dialog can use it.
And that's all there is to it. The font object lives for as long as the
dialog does, because it's a member.