ShowWindow简单一有关问题

ShowWindow简单一问题
MSDN原文:This parameter is ignored the first time an application calls ShowWindow
但是我传入SW_MAXIMIZE,窗口就最大化显示了。没有忽略此参数啊。
若用_tWinMain的参数cmdShow就正常显示。
求解释。

------解决方案--------------------
上句就是说用::m_nCmdShow 调用 ShowWindow()只能一次,以后再调用ShowWindow()必须用
m_nCmdShow 列出的值 (即 SW_SHOW 。。。)
------解决方案--------------------
我翻译下。
ShowWindow must be called only once per application for the main window with CWinApp::m_nCmdShow. Subsequent calls to ShowWindow must use one of the values listed above instead of the on……


每个程序必须使用m_nCmdShow入参来调用ShowWindow一次。
之后,就用之前描述过的SW_XXX集来代替m_nCmdShow入参。

楼主,你InitInstance函数中的调用,绝对不是第一次啦。