summaryrefslogtreecommitdiff
path: root/justtabs/win.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-29 14:29:15 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-29 14:29:15 +0000
commitf8f8072f5195d00bdd8967f291c680643659d919 (patch)
tree29af2ea56786639a4d46866d72791faa803737b6 /justtabs/win.cpp
parente1294a11c3cbc725bb2379f474d7e4f3d58facdb (diff)
added font service entry for tab labels
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@69 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'justtabs/win.cpp')
-rw-r--r--justtabs/win.cpp15
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);