Make text of CButton non-bold
-
I am creating a new CButton programatically using following syntax : CButton *xtn; xbtn = new CButton(); xbtn->Create(... // relevant syntax My problem is text of the caption of button is always BOLD. I want it to be default-NON BOLD. I also tried getting a device context and then font and then LOGFONT ... change its weight property to 100 and then setting it as font of button's DC using selectobject() bt even that didnt work. Please help. -Cagespear
-
I am creating a new CButton programatically using following syntax : CButton *xtn; xbtn = new CButton(); xbtn->Create(... // relevant syntax My problem is text of the caption of button is always BOLD. I want it to be default-NON BOLD. I also tried getting a device context and then font and then LOGFONT ... change its weight property to 100 and then setting it as font of button's DC using selectobject() bt even that didnt work. Please help. -Cagespear
-
I am creating a new CButton programatically using following syntax : CButton *xtn; xbtn = new CButton(); xbtn->Create(... // relevant syntax My problem is text of the caption of button is always BOLD. I want it to be default-NON BOLD. I also tried getting a device context and then font and then LOGFONT ... change its weight property to 100 and then setting it as font of button's DC using selectobject() bt even that didnt work. Please help. -Cagespear
You can change font of button with
SetFont
and also make your font withCreateFont
and then use of it on the button.
WhiteSky