⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tftdfas.cpp

📁 对话框子类设计
💻 CPP
字号:
// tftdfas.cpp : implementation file
//

#include "stdafx.h"
#include "SDAF.h"
#include "tftdfas.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// tftdfas dialog


tftdfas::tftdfas(CWnd* pParent /*=NULL*/)
	: CDialog(tftdfas::IDD, pParent)
{
	//{{AFX_DATA_INIT(tftdfas)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void tftdfas::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(tftdfas)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(tftdfas, CDialog)
	//{{AFX_MSG_MAP(tftdfas)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// tftdfas message handlers

BOOL tftdfas::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	// TODO: Add extra initialization here
		// TODO: Add extra initialization here
	CCreateContext context1;
	context1.m_pNewViewClass = RUNTIME_CLASS(CEditView);
	context1.m_pCurrentDoc = NULL;
	context1.m_pNewDocTemplate = NULL;
	context1.m_pLastView = NULL;
	context1.m_pCurrentFrame = NULL;

	CCreateContext context2;
	context2.m_pNewViewClass = RUNTIME_CLASS(CEditView);
	context2.m_pCurrentDoc = NULL;
	context2.m_pNewDocTemplate = NULL;
	context2.m_pLastView = NULL;
	context2.m_pCurrentFrame = NULL;

	CWnd * pWnd = NULL;
	pWnd = GetDlgItem(IDC_EDIT1);
	CRect rect;
	pWnd->GetClientRect(&rect);

	m_wndSplitter.CreateStatic(pWnd,2,1);
	m_wndSplitter.CreateView( 0, 0, RUNTIME_CLASS( CEditView ), CSize( 0, rect.Height()/2 ), &context1 );
	m_wndSplitter.CreateView( 1, 0, RUNTIME_CLASS( CEditView ), CSize( 0, rect.Height()/2 ), &context2 );
	m_wndSplitter.MoveWindow(rect);

	CEditView *pView1 = (CEditView *) m_wndSplitter.GetPane( 0, 0 );
//	SetTreeView(pView1);
	CEditView *pView2 = (CEditView *) m_wndSplitter.GetPane( 1, 0 );
//	SetListView(pView2);

	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -