You resize window gets WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED commands pick them off and resize the client
In C/C++ you handle them in the window handler of the window that resizes like this so it will look something similar
case WM_WINDOWPOSCHANGING:
case WM_WINDOWPOSCHANGED:
{
RECT rc;
HDWP hDWP;
if(hDWP = BeginDeferWindowPos(???)){
GetClientRect(hWnd, &rc);
hDWP = DeferWindowPos(hDWP, ??? Handle to your window, NULL,
???x, ???y, ???cx, ???cy, SWP_NOZORDER | SWP_NOREDRAW);
EndDeferWindowPos(hDWP);
RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ALLCHILDREN |
RDW_ERASE | RDW_NOFRAME | RDW_UPDATENOW);
}
}
return 0;