precreatewindows( .. cs)
{
 cs.x = ...
 cs.y = ...
 ....
}

解决方案 »

  1.   

    查一下SetWindowLong();可以隐藏标题栏或者重新处理移动命令。
      

  2.   

    将窗口居中:CenterWindow();
    固定大小则加入WM_SIZE消息的处理:
    void CMainFrame::OnSize(...)
    {
    ...
    SetWindowPos(&wndTop( HWND hWndInsertAfter, int x, int y, int cx, int cy,SWP_NOMOVE);
    //x,y,cx,cy最好写入注册表。以保证不变化
    ...
    }
      

  3.   

    CenterWindow();可以居中如果要固定不动,可以将风格设为没有标题
    想动也就无从下手了