www.pudn.com > vcpinhuachuli.rar
To Read all the content
[file head]:
// MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "DSplit.h"
#include "MainFrm.h"
#include "DynSplitView2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_WM_CREATE()
// ON_COMMAND(ID_DYNSPLIT, OnDynSplit)
// ON_UPDATE_COMMAND_UI(ID_DYNSPLIT, OnUpdateDynSplit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
CMainFrame::~CMai
... ...
[file tail]:
... ...
(0, 0), pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}
// activate the input view
SetActiveView((CView*)m_wndSplitter.GetPane(0,1));
return TRUE;
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT&amt; cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CFrameWnd::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext&amt; dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainFrame message handlers
/*void CMainFrame::OnDynSplit()
{
m_wndSplitter.SetDynamic(!m_wndSplitter.IsDynamic());
}
void CMainFrame::OnUpdateDynSplit(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(m_wndSplitter.IsDynamic());
}
*/