From 85f0c7023d43e86219a828342395af16fcf251cd Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 6 Oct 2004 09:08:50 +0000 Subject: [PATCH] update item height after changing the font svn path=/trunk/; revision=11210 --- reactos/subsys/system/winefile/winefile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index e1eb66fe178..35388af1a5d 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -1827,7 +1827,7 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam case ID_WINDOW_ARRANGE: SendMessage(Globals.hmdiclient, WM_MDIICONARRANGE, 0, 0); break; - + case ID_SELECT_FONT: { TCHAR dlg_name[BUFFER_LEN], dlg_info[BUFFER_LEN]; CHOOSEFONT chFont; @@ -1861,6 +1861,8 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam ChildWnd* child = (ChildWnd*) GetWindowLong(childWnd, GWL_USERDATA); SetWindowFont(child->left.hwnd, Globals.hfont, TRUE); SetWindowFont(child->right.hwnd, Globals.hfont, TRUE); + ListBox_SetItemHeight(child->left.hwnd, 1, max(Globals.spaceSize.cy,IMAGE_HEIGHT+3)); + ListBox_SetItemHeight(child->right.hwnd, 1, max(Globals.spaceSize.cy,IMAGE_HEIGHT+3)); InvalidateRect(child->left.hwnd, NULL, TRUE); InvalidateRect(child->right.hwnd, NULL, TRUE); }