//m_ok为Button对象,我要把它向上移动50像素.为什么执行下面的代码后,按钮不见了.是程序有问题吗?应该怎样移动按钮呢.
m_ok.GetWindowRect(&r);
r.top=r.top-50;
r.botton=r.botton-50;
this->m_ok.MoveWindow(r);
m_ok.GetWindowRect(&r);
r.top=r.top-50;
r.botton=r.botton-50;
this->m_ok.MoveWindow(r);
m_ok.GetWindowRect(&r);
r.top=r.top-50;
r.botton=r.botton-50;
ScreenToClient(r)
this->m_ok.MoveWindow(r);