im usingVB Code:
case WM_SIZE: { RECT rcClient; GetClientRect(hwnd, &rcClient); SetWindowPos(hList, NULL, 0, 0, rcClient.right, rcClient.bottom, SWP_NOZORDER); break; }
Is this a good way to do it?
Printable View
im usingVB Code:
case WM_SIZE: { RECT rcClient; GetClientRect(hwnd, &rcClient); SetWindowPos(hList, NULL, 0, 0, rcClient.right, rcClient.bottom, SWP_NOZORDER); break; }
Is this a good way to do it?
That looks fine, but you can also use MoveWindow() which is easier.
Code:SetWindowPos(hList, NULL, 0, 0, rcClient.right, rcClient.bottom, SWP_NOZORDER);