Hey, Is there a way that I could change the font of a checkbox and edit control?? thanks
Posted on 2001-04-14 06:57:00 by Kezza
Kezza, You create the font, then set the font for the control. Look up the API CreateFont for the flags, 1st 2 parameters are the font size, 5th is font weight.

    szText fname,"arial"

    invoke CreateFont,16,8,0,0,500,
                      FALSE, FALSE, FALSE,
                      ANSI_CHARSET,0,0,PROOF_QUALITY,
                      DEFAULT_PITCH,ADDR fname
    mov hFont, eax

    invoke SendMessage,hCtrl,WM_SETFONT,hFont,TRUE

Regards, hutch@pbq.com.au
Posted on 2001-04-14 09:53:00 by hutch--