Problem about a splitted window
Hello everybody, I create a simple program by now it's like a notepad but I splitted the main window in 2 windows I need to open a file (input.txt) and see that file in the two window, but I don't know what I can do!!
//That's the splitter code
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// create splitter window
if (!m_wndSplitter2.CreateStatic(this, 2, 1))
return FALSE;
if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CHolderView), CSize(100, 100), pContext) ||
!m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CHolderView), CSize(100, 100), pContext))
{
m_wndSplitter2.DestroyWindow();
return FALSE;
}
return TRUE;
}
Help is appreciated!!
(Contact me also with email for other particulars)
Thank to all!
|