/ MySplitterFrame.cpp : implementation file
//
#include "stdafx.h"
#include "SDI.h"
#include "MySplitterFrame.h"
#include "TestFormView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMySplitterFrame
IMPLEMENT_DYNCREATE(CMySplitterFrame, CFrameWnd)
CMySplitterFrame::CMySplitterFrame()
{
}
CMySplitterFrame::~CMySplitterFrame()
{
}
BEGIN_MESSAGE_MAP(CMySplitterFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMySplitterFrame)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMySplitterFrame message handlers
BOOL CMySplitterFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
m_wndSplitter1.CreateStatic(this, 2,1);
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CTestFormView),CSize(800,300), pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CTestFormView),CSize(800,300), pContext);
// return CFrameWnd::OnCreateClient(lpcs, pContext);
return TRUE;
}
#if !defined(AFX_MYSPLITTERFRAME_H__56F38788_27C9_4DFF_9287_63198166A1F3__INCLUDED_)
#define AFX_MYSPLITTERFRAME_H__56F38788_27C9_4DFF_9287_63198166A1F3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MySplitterFrame.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMySplitterFrame frame
class CMySplitterFrame : public CFrameWnd
{
DECLARE_DYNCREATE(CMySplitterFrame)
protected:
CMySplitterFrame(); // protected constructor used by dynamic creation
// Attributes
public:
CSplitterWnd m_wndSplitter1;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMySplitterFrame)
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CMySplitterFrame();
// Generated message map functions
//{{AFX_MSG(CMySplitterFrame)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYSPLITTERFRAME_H__56F38788_27C9_4DFF_9287_63198166A1F3__INCLUDED_)