Try to react to the
WM_SIZE
dialog's message,
then to move your controls explicitly :)
void CYourDialog::OnSize(UINT nType, int cx, int cy)
{
CRect crClient;
GetClientRect(crClient);
if (m_cBtnOK.GetSafeHwnd()) {
CRect crControl;
m_cBtnOK.GetWindowRect(crControl);
ScreenToClient(crControl);
crControl.OffsetRect(crClient.BottomRoght() - m_cLastClientBottomRight);
m_cBtnOK.MoveWindow(crControl);
m_cBtnOK.Invalidate();
}
m_cLastClientBottomRight = crClient.BottomRight();
}