Did you know you can set multiple fonts for several controls using a simple CFont object in MFC? Using the Detach()
method, which disassociates the associated window object from a wrapper object, you can write the code as follows:
The code portion can be as follows:
You can also use this code to set the font for several controls.