Current location - Health Preservation Learning Network - Slimming men and women - Find an example of TextOut () outputting text to modify font style (pure API)
Find an example of TextOut () outputting text to modify font style (pure API)
//Declare it in the constructor first, and then create the font.

HFONT hFont

HFONT oldFont

Hfont = createfont (30, 0, 0, 0, 0, 0, GB 23 12 _ charset, 0, 0, 0, 0, text ("Founder Style"));

//Then delete the font in the destructor.

delete object(hFont);

//Where is it used? Just use the following function directly.

old font =(HFONT)select object(buffer DC,HFONT);