|
@@ -350,18 +350,21 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
|
|
#endif
|
|
|
|
|
|
#if _USE_DLGVIEW_ // 第一个视图;
|
|
|
- CCreateContext context;
|
|
|
- m_pUB530View = new CChildFrame();
|
|
|
- context.m_pLastView = NULL;
|
|
|
- context.m_pCurrentFrame = this;
|
|
|
- context.m_pCurrentDoc = m_pDoc;
|
|
|
- context.m_pNewViewClass = RUNTIME_CLASS(CUB530View);
|
|
|
- context.m_pNewDocTemplate = m_pDoc->GetDocTemplate();
|
|
|
- if (m_pUB530View->LoadFrame(DLG_UB530VIEW, WS_MAXIMIZE | WS_CHILDWINDOW, this, &context))
|
|
|
+ if (Global::g_Config.useUB530)
|
|
|
{
|
|
|
- //m_pUB530View->ShowWindow(SW_SHOWMAXIMIZED);
|
|
|
- m_pUB530View->InitialUpdateFrame(context.m_pCurrentDoc, FALSE);
|
|
|
- //m_pUB530View->MDIActivate();
|
|
|
+ CCreateContext context;
|
|
|
+ m_pUB530View = new CChildFrame();
|
|
|
+ context.m_pLastView = NULL;
|
|
|
+ context.m_pCurrentFrame = this;
|
|
|
+ context.m_pCurrentDoc = m_pDoc;
|
|
|
+ context.m_pNewViewClass = RUNTIME_CLASS(CUB530View);
|
|
|
+ context.m_pNewDocTemplate = m_pDoc->GetDocTemplate();
|
|
|
+ if (m_pUB530View->LoadFrame(DLG_UB530VIEW, WS_MAXIMIZE | WS_CHILDWINDOW, this, &context))
|
|
|
+ {
|
|
|
+ //m_pUB530View->ShowWindow(SW_SHOWMAXIMIZED);
|
|
|
+ m_pUB530View->InitialUpdateFrame(context.m_pCurrentDoc, FALSE);
|
|
|
+ //m_pUB530View->MDIActivate();
|
|
|
+ }
|
|
|
}
|
|
|
#else
|
|
|
CCreateContext context;
|