diff --git a/rosapps/regedit/listview.c b/rosapps/regedit/listview.c index d2c5c4b23e6..681471d156d 100644 --- a/rosapps/regedit/listview.c +++ b/rosapps/regedit/listview.c @@ -270,8 +270,8 @@ HWND CreateListView(HWND hwndParent, int id) // Get the dimensions of the parent window's client area, and create the list view control. GetClientRect(hwndParent, &rcClient); - hwndLV = CreateWindowEx(0, WC_LISTVIEW, _T("List View"), - WS_VISIBLE | WS_CHILD | WS_EX_CLIENTEDGE | LVS_REPORT, + hwndLV = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, _T("List View"), + WS_VISIBLE | WS_CHILD | LVS_REPORT, 0, 0, rcClient.right, rcClient.bottom, hwndParent, (HMENU)id, hInst, NULL); ListView_SetExtendedListViewStyle(hwndLV, LVS_EX_FULLROWSELECT); diff --git a/rosapps/regedit/treeview.c b/rosapps/regedit/treeview.c index 69d7b490730..82a0d50bb78 100644 --- a/rosapps/regedit/treeview.c +++ b/rosapps/regedit/treeview.c @@ -245,8 +245,8 @@ HWND CreateTreeView(HWND hwndParent, LPTSTR pHostName, int id) // Get the dimensions of the parent window's client area, and create the tree view control. GetClientRect(hwndParent, &rcClient); - hwndTV = CreateWindowEx(0, WC_TREEVIEW, _T("Tree View"), - WS_VISIBLE | WS_CHILD | WS_EX_CLIENTEDGE | TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT, + hwndTV = CreateWindowEx(WS_EX_CLIENTEDGE, WC_TREEVIEW, _T("Tree View"), + WS_VISIBLE | WS_CHILD | TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT, 0, 0, rcClient.right, rcClient.bottom, hwndParent, (HMENU)id, hInst, NULL); // Initialize the image list, and add items to the control.