在单文档程序中怎么改变视图的大小,在precreate哪里改不行应该怎么做呢、

解决方案 »

  1.   

    调用CWnd: : SetWindowPos并指定SWP_NOMOVE标志, 也可调用CWnd : : MoveWindow 但必须指定窗口的位置。
    // Get the size of the window .
    Crect reWindow
    GetWindowRect (reWindow )//Make the window twice as wide and twice as tall .
    SetWindowPos (NULL , 0 , 0 , reWindow . Width ( ) *2,reWindow . Height () * 2,
     SWP_NOMOVE |SWP_NOZORDER )