要求达到的效果是在单击窗口菜单某项时,窗口的变为指定的大小,怎样实现?
还有一个小问题,要修改应用程序执行后的标题,在那里修改?
因为如果不修改执行后程序的标题是“未命名-(应用程序的名字}”
我想改为“abc“,不想用它的命名方式。

解决方案 »

  1.   

    CDocument::SetTitle 
    virtual void SetTitle( LPCTSTR lpszTitle );ParameterslpszTitlePoints to the string to be used as the document’s title.
      

  2.   

    CWnd::OnSize  
    afx_msg void OnSize( UINT nType, int cx, int cy );ParametersnTypeSpecifies the type of resizing requested. This parameter can be one of the following values: SIZE_MAXIMIZED   Window has been maximized.
    SIZE_MINIMIZED   Window has been minimized.
    SIZE_RESTORED   Window has been resized, but neither SIZE_MINIMIZED nor SIZE_MAXIMIZED applies.
    SIZE_MAXHIDE   Message is sent to all pop-up windows when some other window is maximized.
    SIZE_MAXSHOW   Message is sent to all pop-up windows when some other window has been restored to its former size. 
    cxSpecifies the new width of the client area.cySpecifies the new height of the client area.