Skocz do zawartości

Recommended Posts

Napisano

Komunikatem WM_SETFONT:

WM_SETFONT
wParam = (WPARAM) hFont; // uchwyt czcionki
lParam = MAKELPARAM(fRedraw, 0); // flaga przerysowania okna

Jeślui masz okno o uchwycie hwnd, kontrolkę IDC_BUTTON, czcionkę hFont i chcesz, aby owa kontrolka jej użyła, to piszesz:

SendDlgItemMessage (hwnd, IDC_BUTTON, WM_SETFONT, (WPARAM) hFont, MAKELPARAM (TRUE, 0)) ;

Życzę powodzenia!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gość
Odpowiedz...

×   Wkleiłeś zawartość bez formatowania.   Usuń formatowanie

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Utwórz nowe...