Your client EXE could have an own main window
and just create a "nested" editor frame
with EXE main window as parent :)
You could use the "general" (without the term "linked") functions of
CEditor
:
bool CEditor::CreateMainFrame(CWnd* pcParent )
{
ASSERT(!m_pcMainFrame->GetSafeHwnd());
m_pcMainFrame = new CYourMainFrame();
CWinApp* pcClientApp = AfxGetApp();
ASSERT(pcClientApp);
if (pcClientApp && !pcParent) {
pcClientApp->m_pMainWnd = m_pcMainFrame;
}
return SUCCESS(m_pcMainFrame->CreateWindow(..., ..., pcParent, ...));
}
CYourMainFrame* CEditor::GetMainFrame()
{
return m_pcMainFrame;
}
In both cases the CYourMainFrame
will receive the all not blocked messages :)