我在我的应用程序中插入了一个对话框,但是我想动态变化对话框的大小(长和宽),不知道该怎么办?请赐教,谢谢!

解决方案 »

  1.   

    CYourDlg dlg;
    dlg.SetWindowPos(&wndTop,0,0,cx,cy,SWP_SHOWWINDOW);
      

  2.   

    如果有人知道,请通知告诉我,谢谢。
    关注你的问题!
    [email protected]
      

  3.   

    write codes in OnSize event handler
      

  4.   

    该用什么样的方法,SetWindowPos里面的参数都是什么意思???窗口的大小可以用这样的函数吗?谢谢!
      

  5.   

    dlg.SetWindowPos(&wndTop,0,0,cx,cy,SWP_SHOWWINDOW);
    MSDN里有参数的说明
      

  6.   

    左上右下之类。SetWindowPos( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );MSDN。