各位大侠,
请问如何在基于MFC的ACTIVEX中实现MDI,目前已经在ACTIVEX中实现了SDI结构,最好有源码!
请问如何在基于MFC的ACTIVEX中实现MDI,目前已经在ACTIVEX中实现了SDI结构,最好有源码!
解决方案 »
- ASF问题请教,大侠帮忙啊
- std::string的大小超过了1024字节,想修改std::string的默认字节数为2048字节,VC2005中如何处理,可以设置吗?
- CFormView中Edit控件显示问题
- 有个小小的疑问,够长了吧
- 怎样注册窗体类???
- 屏蔽一切鼠标和按键的消息,鼠标的实现了,但是键盘无法屏蔽,大家来看看
- 能否创建具有唯一名字的文件夹?
- 类中定义不确定长度数组
- 关于socket端口的问题
- 多文件下载遇到的问题??大家帮忙看看!!谢谢!
- SDI 程序把默认视图调小后,留出的空白区域怎么去改变它
- 急问:我用的VC6.0当打开一个程序进行断点调试时为什麽出不来context框和watch框,郁闷中
{
CWaitCursor cursor;
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1; m_pTheApp = AfxGetApp();
if(!((CXxApp*)m_pTheApp)->CreateFrameWnd(this))
{
return -1;
} m_Timer = SetTimer(WM_IDLEUPDATECMDUI, 100, NULL); return 0;
}BOOL CXxApp::CreateFrameWnd(CWnd* pWnd)
{
m_pEMRDocTemplate = new CMultiDocTemplate(
IDR_EMRTYPE,
RUNTIME_CLASS(CXxDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CXxView));
AddDocTemplate(m_pEMRDocTemplate); CMainFrame* pMainFrame = new CMainFrame;
if(!pMainFrame || !pMainFrame->LoadFrame(IDR_MAINFRAME, WS_OVERLAPPED|WS_CHILD, pWnd))//设置WS_CHILD样式
{
delete pMainFrame;
return FALSE;
}
m_pMainWnd = pMainFrame; CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand =CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
{
return FALSE;
}
pMainFrame->ShowWindow(SW_SHOWNORMAL);
pMainFrame->UpdateWindow(); return TRUE;
}