MDI窗口logo实现和不创造子窗体的问题,给分100

goo_foo 2003-04-05 07:50:15
怎样在mainFrame中制作一个logo,就像powerbuilder 那样,右下脚有个文字标志,还有,怎么让程序一打开的时候不创建子窗体。给我个例程吧!或者链接,谢谢!
...全文
94 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
EricHxy 2003-04-06
  • 打赏
  • 举报
回复
我这里有一本《深入浅出MFC》,第二版,华中科技大学出版社。
这个实例确实在590页底下的splash window。
如果书的版本不同(我不知道现在是否有新版了),那么实例在第16章,介绍如何使用component时提到。
菜牛 2003-04-06
  • 打赏
  • 举报
回复
重载CMDIChildFrame。
dragon_zqw 2003-04-05
  • 打赏
  • 举报
回复
CMainFrame::OnFileNew()
{
if (AfxGetApp()->m_pDocManager)
AfxGetApp()->m_pDocManager->OnFileNew();
}
CXXView::OnFileNew()
{
if (AfxGetApp()->m_pDocManager)
AfxGetApp()->m_pDocManager->OnFileNew();
}
dragon_zqw 2003-04-05
  • 打赏
  • 举报
回复
在App类中生成ID_FILE_NEW事件OnFileNew(),内容为空,即可以启动程序时不打开视图;
然后把创建新文档的操作放到mainframe的OnFileNew()中以及View类的OnFileNew()中即可!
goo_foo 2003-04-05
  • 打赏
  • 举报
回复
深入浅出mfc吧,590没有啊
goo_foo 2003-04-05
  • 打赏
  • 举报
回复
谢谢
ukyoking 2003-04-05
  • 打赏
  • 举报
回复
1.
http://expert.csdn.net/Expert/topic/1618/1618880.xml?temp=.124859

见这个帖子,只要把其中填充背景的位置换成文字输出
2.

在CMyApp::InitInstance()中添加
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;

EricHxy 2003-04-05
  • 打赏
  • 举报
回复
你的第一个问题可以翻书《输入浅出MFC》的第590页,有现成的非常完整的例子。
关于第二个问题,只需在InitInstance中插入一句话即可:
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

//下面一行为我加入的一句话:
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
zhdleo 2003-04-05
  • 打赏
  • 举报
回复
不创建子窗体?

MDI不就。。。

没明白你的意思。

15,979

社区成员

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

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