
tazmania37
|
Tu récupères le handle de ton texte et tu lui appliques la police que tu veux !
HFONT Verdana = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Verdana"); HFONT Courier = CreateFont(10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Courier"); HFONT Lucida = CreateFont(10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Lucida Console");
hPopupText = CreateWindowEx (0,"STATIC",TEXT("Test"),WS_CHILD | WS_VISIBLE ,0,0, 200,20,hWnd,0,0,0); SendMessage(hPopupText , WM_SETFONT,(WPARAM)Lucida, TRUE);
SendMessage(hPopupText, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), MAKELPARAM(TRUE, 0));
Taz
|