diff options
Diffstat (limited to 'justtabs/win.cpp')
-rw-r--r-- | justtabs/win.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/justtabs/win.cpp b/justtabs/win.cpp index e2f286c..b85cd9c 100644 --- a/justtabs/win.cpp +++ b/justtabs/win.cpp @@ -124,12 +124,6 @@ BOOL CALLBACK FrameProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { TabCtrl_SetImageList(tab_ctrl, clist_imagelist);
- LOGFONT lf;
- SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(LOGFONT), &lf, FALSE);
- lf.lfHeight = -12;
- HFONT hFont = CreateFontIndirect(&lf);
- SendMessage(tab_ctrl, WM_SETFONT, (WPARAM)hFont, MAKELPARAM(TRUE, 0));
-
SubclassTabCtrl(tab_ctrl);
active_window = 0;
@@ -513,6 +507,15 @@ BOOL CALLBACK FrameProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { }
}
break;
+ case WM_FONTRELOAD:
+ //LOGFONT lf;
+ //SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(LOGFONT), &lf, FALSE);
+ //lf.lfHeight = -12;
+ //HFONT hFont = CreateFontIndirect(&lf);
+ SendMessage(tab_ctrl, WM_SETFONT, (WPARAM)hFontTabs, MAKELPARAM(TRUE, 0));
+ //RedrawWindow(hwnd, 0, 0, RDW_INVALIDATE);
+ SendMessage(hwnd, WM_SIZE, 0, 0);
+ return TRUE;
}
//return DefWindowProc(hwnd, msg, wParam, lParam);
|