我正在设置"BUTTON"
控件的字体,如下所示:
HFONT hFont = CreateFont(16, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Tahoma");
SendMessage(hButton1, WM_SETFONT, (WPARAM)hFont, TRUE);
我可以在致电hFont
后直接删除SendMessage()
,还是需要首先销毁hButton1
?