1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
//creating the fonts objects
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, TEXT("Tahoma"));
hFontBold = CreateFont(14, 0, 0, 0, FW_SEMIBOLD, FALSE, FALSE, FALSE, ANSI_CHARSET,
OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
DEFAULT_PITCH | FF_DONTCARE, TEXT("Tahoma"));
/////////////////////
/////////////////////
GroupBox4_2 = CreateWindow("BUTTON", "RS", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 285, 45, 626, 442, hWnd, 0, 0, 0);
//wpOldGroupBox4_2Proc = (WNDPROC)SetWindowLongPtr(GroupBox4_2, GWLP_WNDPROC, (LONG_PTR)CustomGroupBox4_2Proc);
SendMessage(GroupBox4_2, WM_SETFONT, (WPARAM)hFontBold, TRUE);
GroupBox5 = CreateWindow("BUTTON", "SS", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 560, 35, 260, 120, GroupBox4_2, 0, 0, 0);
SendMessage(GroupBox5, WM_SETFONT, (WPARAM)hFontBold, TRUE);
|