在CWinApp的派生类中如下代码CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
解决方案 »
- VC2008中如何给编辑框加载位图背景
- VC中使用定时器
- 求yuv211转rgb565的代码
- 什么字体,字符 0 , 1, . , x的宽度相同?
- 一个别人的程序,大家来帮忙分析一下它的界面是怎么做出来的,很很很奇怪。
- 为什么我注册了程序,双击的时候为什么提示找不到文件?两天了,搞不定,求助啊!
- 请教有关CEdit控件的问题
- 有谁知道可以显示gif图像的控件,请介绍一个。
- Win7下修改注册表后如何不重启就生效
- xp系统下,用regesvr32 注册dll, Release版本能注册成功,Debug版本失败
- 这个警告Warning: skipping non-radio button in group.是为什么?
- 在Installshield中用哪个函数可以知道安装的计算机名称或IP?
cmdInfo.m_nShellCommand = CCommandLineInfo.FileNothing;
2。把pMainFrame->ShowWindow(m_nCmdShow);
改为;
pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE; // The main window has been initialized, so show and update it.
pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);
pMainFrame->UpdateWindow();
{
.....
.....
/*把下面这段代码注销
if (!ProcessShellCommand(cmdInfo))
return FALSE;
*/
....
}
我指的是多文档里面的怎样最大化
把整个程序最大化了我想把打开的文档最大化
我在OnCreate里面加了ShowWindow(SW_SHOWMAXIMIZED);只把标题栏都弄没了
却没有在CChildFrame里面最大化。是不是因为我用了CBCGMDIChildWnd的原因呢?
{
// TODO: Modify this function to change how the frame is activated. nCmdShow = SW_SHOWMAXIMIZED;
CMDIChildWnd::ActivateFrame(nCmdShow);
}
cmdInfo.m_nShellCommand = CCommandLineInfo.FileNothing;
把pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);
cmdInfo.m_nShellCommand = CCommandLineInfo.FileNothing;
把pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);