vc 怎样设置子窗体在父窗体的固定位置显示解决思路

vc 怎样设置子窗体在父窗体的固定位置显示
vc   怎样设置子窗体在父窗体的固定位置显示

------解决方案--------------------
CRect rectmain,rectchild; //main 为父窗口,child为子窗口
this-> GetClientRect(&rectmain); //获得父窗口大小
rectchild.left = 0;
rectchild.top = 0;
rectchild.bottom = rectmain.bottom;
rectchild.right = rectmain.right/4;
m_ctrl.MoveWindow(&rectchild); //m_ctrl为子窗口控制变量