mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
update item height after changing the font
svn path=/trunk/; revision=11210
This commit is contained in:
parent
1011770d88
commit
85f0c7023d
1 changed files with 3 additions and 1 deletions
|
@ -1827,7 +1827,7 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
|
||||||
case ID_WINDOW_ARRANGE:
|
case ID_WINDOW_ARRANGE:
|
||||||
SendMessage(Globals.hmdiclient, WM_MDIICONARRANGE, 0, 0);
|
SendMessage(Globals.hmdiclient, WM_MDIICONARRANGE, 0, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_SELECT_FONT: {
|
case ID_SELECT_FONT: {
|
||||||
TCHAR dlg_name[BUFFER_LEN], dlg_info[BUFFER_LEN];
|
TCHAR dlg_name[BUFFER_LEN], dlg_info[BUFFER_LEN];
|
||||||
CHOOSEFONT chFont;
|
CHOOSEFONT chFont;
|
||||||
|
@ -1861,6 +1861,8 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
|
||||||
ChildWnd* child = (ChildWnd*) GetWindowLong(childWnd, GWL_USERDATA);
|
ChildWnd* child = (ChildWnd*) GetWindowLong(childWnd, GWL_USERDATA);
|
||||||
SetWindowFont(child->left.hwnd, Globals.hfont, TRUE);
|
SetWindowFont(child->left.hwnd, Globals.hfont, TRUE);
|
||||||
SetWindowFont(child->right.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->left.hwnd, NULL, TRUE);
|
||||||
InvalidateRect(child->right.hwnd, NULL, TRUE);
|
InvalidateRect(child->right.hwnd, NULL, TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue