fix editor layout changing

This commit is contained in:
henrypp committed 2021-10-29 18:13:12 +06:00
1 parent b6e29b5c0f
commit f91a31d326
1 file changed
+10 -2
+10 -2
View File
@@ -722,9 +722,7 @@ INT_PTR CALLBACK PropertiesPagesProc (_In_ HWND hwnd, _In_ UINT msg, _In_ WPARAM
hlistview = GetDlgItem (hwnd, listview_ids[i]);
if (hlistview)
{
_r_listview_setcolumn (hwnd, listview_ids[i], 0, NULL, -100);
}
}
break;
@@ -1376,7 +1374,17 @@ INT_PTR CALLBACK PropertiesProc (_In_ HWND hwnd, _In_ UINT msg, _In_ WPARAM wpar
case WM_SIZE:
{
HWND hpage;
INT item_id;
_r_layout_resize (&layout_manager, wparam);
item_id = _r_tab_getcurrentitem (hwnd, IDC_TAB);
hpage = (HWND)_r_tab_getitemlparam (hwnd, IDC_TAB, item_id);
if (hpage)
_r_tab_adjustchild (hwnd, IDC_TAB, hpage);
break;
}