简体   繁体   English

MFC最大化窗口功能

[英]MFC maximize window feature

I have tried to make the fullscreen feature of a SDI application with splitter windows by following the forum link . 我已尝试通过遵循论坛链接来使带有拆分器窗口的SDI应用程序具有全屏功能。 However, my status bar, system menu as well as the title bar of the application have disappeared. 但是,我的状态栏,系统菜单以及应用程序的标题栏都消失了。 Do you have any suggestions on any easy ways of getting these back (or if I have to use different method of making the application maximized during startup instead of fullscreen)? 您是否有关于恢复这些简便方法的任何建议(或者如果我必须使用其他方法使应用程序在启动过程中最大化而不是全屏显示)? Thanks in advance. 提前致谢。

我摆脱了PreCreateWindow处理程序中对cs结构的任何操作,并在MainFrame函数的OnCreate函数实现中使用了ShowWindow(SW_MAXIMIZE)函数调用,它运行良好。

It sounds like you just want the window to be maximized. 听起来您只是希望窗口最大化。 Take a look at the SetWindowPlacement function or ShowWindow . 看一下SetWindowPlacement函数或ShowWindow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM