I have a simple question, I couldn't find a thing on google. Basically I want to use multiple fonts within a dialog setup in the resource file.
The font specified being default, but I am wanting to, for example, use a different font on a/ the push button.
I'm not sure if it is possible. Here is how I have it setup.
IDD_MAIN DIALOGEX 0, 0, 165, 250
STYLE DS_MODALFRAME | WS_CAPTION
CAPTION "Options"
FONT 8, "MS Sans Serif"
BEGIN
GROUPBOX "Target",IDC_STATIC,7,7,155,35
PUSHBUTTON "TRGT1",IDC_TARGET1,15,18,30,14
PUSHBUTTON "&Damage Click",IDC_DMGCLICK,7,60,84,14
EDITTEXT IDC_INPUTCLICKCOUNT, 7, 80, 84, 14
END
Thanks.
我认为不可能完全按照您的要求进行操作(尽管我很想证明错误!),但是您始终可以通过使用WM_INITDIALOG
处理程序向其发送WM_SETFONT
消息来更改按钮的字体。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.