莫明其妙啊

解决方案 »

  1.   

    用SetWindowPos函数来改变对话框的大小!
    BOOL SetWindowPos(
      HWND hWnd,             // handle to window
      HWND hWndInsertAfter,  // placement-order handle
      int X,                 // horizontal position
      int Y,                 // vertical position
      int cx,                // width
      int cy,                // height
      UINT uFlags            // window-positioning options
    );
      

  2.   

    不行啊
    ::IsWindow(dlg.m_hWnd)
    返回FALSE
    执行SetWindowPos或者说MoveWindow都会被Assert啊
      

  3.   

    CMyDialog : public CDialog????
    如果是这样,不可能的,用SetWindowPos或者MoveWindow都可以的,