|
|
|
@ -798,22 +798,19 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT dpiX = 0, dpiY = 0; |
|
|
|
|
|
|
|
HRESULT hr = GetDpiForMonitor(MonitorFromWindow(hwnd, MONITOR_DEFAULTTOPRIMARY), MDT_DEFAULT, &dpiX, &dpiY); |
|
|
|
LOGFONT logFont; |
|
|
|
LOGFONT logFont; |
|
|
|
memset(&logFont, 0, sizeof(logFont)); |
|
|
|
memset(&logFont, 0, sizeof(logFont)); |
|
|
|
NONCLIENTMETRICS ncm; |
|
|
|
NONCLIENTMETRICS ncm; |
|
|
|
ncm.cbSize = sizeof(NONCLIENTMETRICS); |
|
|
|
ncm.cbSize = sizeof(NONCLIENTMETRICS); |
|
|
|
SystemParametersInfoW( |
|
|
|
SystemParametersInfoForDpi(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0, dpiX); |
|
|
|
SPI_GETNONCLIENTMETRICS, |
|
|
|
|
|
|
|
sizeof(NONCLIENTMETRICS), |
|
|
|
|
|
|
|
&ncm, |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
logFont = ncm.lfCaptionFont; |
|
|
|
logFont = ncm.lfCaptionFont; |
|
|
|
logFont.lfHeight = GUI_CAPTION_FONT_SIZE * dy; |
|
|
|
//logFont.lfHeight = GUI_CAPTION_FONT_SIZE * dy;
|
|
|
|
//logFont.lfWeight = FW_BOLD;
|
|
|
|
//logFont.lfWeight = FW_BOLD;
|
|
|
|
HFONT hFontCaption = CreateFontIndirect(&logFont); |
|
|
|
HFONT hFontCaption = CreateFontIndirect(&logFont); |
|
|
|
logFont = ncm.lfMenuFont; |
|
|
|
logFont = ncm.lfMenuFont; |
|
|
|
logFont.lfHeight = GUI_TITLE_FONT_SIZE * dy; |
|
|
|
//logFont.lfHeight = GUI_TITLE_FONT_SIZE * dy;
|
|
|
|
HFONT hFontTitle = CreateFontIndirect(&logFont); |
|
|
|
HFONT hFontTitle = CreateFontIndirect(&logFont); |
|
|
|
logFont.lfWeight = FW_REGULAR; |
|
|
|
logFont.lfWeight = FW_REGULAR; |
|
|
|
logFont.lfUnderline = 1; |
|
|
|
logFont.lfUnderline = 1; |
|
|
|
@ -822,7 +819,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
logFont.lfUnderline = 0; |
|
|
|
logFont.lfUnderline = 0; |
|
|
|
HFONT hFontRegular = CreateFontIndirect(&logFont); |
|
|
|
HFONT hFontRegular = CreateFontIndirect(&logFont); |
|
|
|
logFont.lfWeight = FW_DEMIBOLD; |
|
|
|
logFont.lfWeight = FW_DEMIBOLD; |
|
|
|
logFont.lfHeight = GUI_SECTION_FONT_SIZE * dy; |
|
|
|
//logFont.lfHeight = GUI_SECTION_FONT_SIZE * dy;
|
|
|
|
HFONT hFontSection = CreateFontIndirect(&logFont); |
|
|
|
HFONT hFontSection = CreateFontIndirect(&logFont); |
|
|
|
logFont.lfUnderline = 1; |
|
|
|
logFont.lfUnderline = 1; |
|
|
|
HFONT hFontSectionSel = CreateFontIndirect(&logFont); |
|
|
|
HFONT hFontSectionSel = CreateFontIndirect(&logFont); |
|
|
|
|