Different fonts in static controls
-
Is there a way to force (or rather to ask :-) Windows to use different fonts in certain controls? In the actual case, I'd like to have a title or whatever with large letters in the main window area. I changed the font size parameter definition in the dialog resource definition, but this applies of course to all controls. I thought of overlaying the designated area with another windon containing the text, but a) I don't see, how to make a window without any border, etc. b) the wizzard changes the font size back again and again. Pls don't suggest to make a bit-map image out of my text :-( - that is the very last resort.
-
Is there a way to force (or rather to ask :-) Windows to use different fonts in certain controls? In the actual case, I'd like to have a title or whatever with large letters in the main window area. I changed the font size parameter definition in the dialog resource definition, but this applies of course to all controls. I thought of overlaying the designated area with another windon containing the text, but a) I don't see, how to make a window without any border, etc. b) the wizzard changes the font size back again and again. Pls don't suggest to make a bit-map image out of my text :-( - that is the very last resort.
-
Is there a way to force (or rather to ask :-) Windows to use different fonts in certain controls? In the actual case, I'd like to have a title or whatever with large letters in the main window area. I changed the font size parameter definition in the dialog resource definition, but this applies of course to all controls. I thought of overlaying the designated area with another windon containing the text, but a) I don't see, how to make a window without any border, etc. b) the wizzard changes the font size back again and again. Pls don't suggest to make a bit-map image out of my text :-( - that is the very last resort.
1. get the ctrl obj address 2. call SetFont function e.g: (if thats a CButton ctrl)
CFont m_TEFont; CButton *ptr = (CButton *)GetDlgItem(IDC_BUTTON1); ptr->CreatePointFont(100,"Courier New"); ptr->SetFont(&m_TEFont,TRUE);
"Think big, think fast, think ahead. Ideas are no one's monopoly" -
Is there a way to force (or rather to ask :-) Windows to use different fonts in certain controls? In the actual case, I'd like to have a title or whatever with large letters in the main window area. I changed the font size parameter definition in the dialog resource definition, but this applies of course to all controls. I thought of overlaying the designated area with another windon containing the text, but a) I don't see, how to make a window without any border, etc. b) the wizzard changes the font size back again and again. Pls don't suggest to make a bit-map image out of my text :-( - that is the very last resort.
Thanks guys, I will try it. Actually, I created a few "buttons" as bit-maps. It's a bit tiresome, but this way one can do anything - for example big letters and underneath small explanation, all in color, on the "button". However this "button" does not act as a real button, so I created overlay-bitmaps, which show a different state of the buttons (it does not show the button being clicked, i.e. pressed down, but it indicates, that this has been selected). Anyway, I find it a bit sad to have to work so much for such trivias.