View Single Post
  #1 (permalink)  
Old March 14th, 2005, 02:33 PM
xOMEGAx xOMEGAx is offline
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!
Reply With Quote