There is no docking support in the Windows API. You’ll have to implement it manually by handling the WM_SIZE
message:
case WM_SIZE: {
UINT width = LOWORD(lParam);
UINT height = HIWORD(lParam);
// IDC_LIST1 will occupy the entire client area of its parent.
// Adjust as needed.
MoveWindow(GetDlgItem(hWnd, IDC_LIST1),
0, 0, width, height, TRUE);
return TRUE;
}
4
solved Dock/Anchor alternative in C++ for List Control