LPCTSTR lpszWndClass = AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW,
::LoadCursor(nullptr, IDC_ARROW), (HBRUSH)(COLOR_WINDOW+1), nullptr);
- if (!CMDIChildWnd::Create(lpszWndClass, GetTitle(), WS_OVERLAPPEDWINDOW | WS_CHILD, rectDefault, pParent))
+ if (!CMergeFrameCommon::Create(lpszWndClass, GetTitle(), WS_OVERLAPPEDWINDOW | WS_CHILD, rectDefault, pParent))
return false;
int nCmdShow = SW_SHOW;
int CImgMergeFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
- if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
+ if (CMergeFrameCommon::OnCreate(lpCreateStruct) == -1)
return -1;
EnableDocking(CBRS_ALIGN_TOP | CBRS_ALIGN_BOTTOM | CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT);
SaveActivePane();
SaveOptions();
SaveWindowState();
- return CMDIChildWnd::DestroyWindow();
+ return CMergeFrameCommon::DestroyWindow();
}
void CImgMergeFrame::LoadOptions()
// for the dimensions of the diff and location pane, use the CSizingControlBar loader
m_wndLocationBar.LoadState(_T("Settings-ImgMergeFrame"));
}
- CMDIChildWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);
+
+ CMergeFrameCommon::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);
+
if (bActivate)
{
GetMainFrame()->PostMessage(WM_USER + 1);
return;
// clean up pointers.
- CMDIChildWnd::OnClose();
+ CMergeFrameCommon::OnClose();
GetMainFrame()->ClearStatusbarItemCount();
}
else
sTitle = strutils::join(&sFileName[0], &sFileName[0] + nBuffers, _T(" - "));
}
- CMDIChildWnd::SetTitle(sTitle.c_str());
+ CMergeFrameCommon::SetTitle(sTitle.c_str());
if (m_hWnd != nullptr)
SetWindowText(sTitle.c_str());
}
return true;
}
}
- return CMDIChildWnd::PreTranslateMessage(pMsg);
+ return CMergeFrameCommon::PreTranslateMessage(pMsg);
}
void CImgMergeFrame::OnSize(UINT nType, int cx, int cy)
{
- CMDIChildWnd::OnSize(nType, cx, cy);
+ CMergeFrameCommon::OnSize(nType, cx, cy);
UpdateHeaderSizes();
}
m_wndStatusBar[pane].SetPaneText(0, text.c_str());
}
}
- CMDIChildWnd::OnIdleUpdateCmdUI();
+ CMergeFrameCommon::OnIdleUpdateCmdUI();
}
/**