SW_SHOWNORMAL与SW_SHOWMAXIMIZED程序执行的差异

xmxjh 2006-08-04 04:41:47
pMainFrame->ShowWindow(m_nCmdShow); //m_nCmdShow//SW_SHOWMAXIMIZED

在向导生成的多文档代码中,将以上的m_nCmdShow(SW_SHOWNORMAL)参数改为SW_SHOWMAXIMIZED后,程序加载过程中不执行OnShowWindow函数,怎么会这样?
...全文
791 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
思危 2006-08-04
  • 打赏
  • 举报
回复
我也来贴一个,说明楼主的问题:

The WM_SHOWWINDOW message is not sent under the following circumstances:


When a top-level, overlapped window is created with the WS_MAXIMIZE or WS_MINIMIZE style.
When the SW_SHOWNORMAL flag is specified in the call to the ShowWindow function.
boluoCTO 2006-08-04
  • 打赏
  • 举报
回复
SW_SHOWMAXIMIZED
Activates the window and displays it as a maximized window.
SW_SHOWNORMAL
Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.

15,980

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧