在OnSize的代码中增加红色代码行即可:
pButtonConfirm->GetWindowRect(rect);
ScreenToClient(rect);
InvalidateRect(rect);
rect.left = rect.left+cxAdd;
rect.right = rect.right+cxAdd;
pButtonConfirm->MoveWindow(rect);
在OnSize的代码中增加红色代码行即可:
pButtonConfirm->GetWindowRect(rect);
ScreenToClient(rect);
InvalidateRect(rect);
rect.left = rect.left+cxAdd;
rect.right = rect.right+cxAdd;
pButtonConfirm->MoveWindow(rect);