16,471
社区成员
发帖
与我相关
我的任务
分享
case WM_SIZE:
HDWP hdwp;
RECT rect;
RECT toolbar;
RECT tree;
hdwp = BeginDeferWindowPos(2);
GetClientRect(hwnd, &rect);
GetClientRect(hToolBar, &toolbar);
GetClientRect(hTree, &tree);
DeferWindowPos(hdwp, hToolBar, NULL, 0, 0,
rect.right, toolbar.bottom, SWP_NOZORDER);
DeferWindowPos(hdwp, hTree, NULL, 0, toolbar.bottom,
toolbar.bottom, rect.bottom, SWP_NOZORDER);
EndDeferWindowPos(hdwp);
break;