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

📄 anaframe.cpp

📁 一个真正实用的应用程序
💻 CPP
字号:
// AnaFrame.cpp : implementation file
//

#include "stdafx.h"
#include "wgl_32.h"
#include "AnaFrame.h"
#include "Ana_32View.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAnaFrame

IMPLEMENT_DYNCREATE(CAnaFrame, CMDIChildWnd)

CAnaFrame::CAnaFrame()
{
}

CAnaFrame::~CAnaFrame()
{
}


BEGIN_MESSAGE_MAP(CAnaFrame, CMDIChildWnd)
	//{{AFX_MSG_MAP(CAnaFrame)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAnaFrame message handlers
/*
BOOL CAnaFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	// TODO: Add your specialized code here and/or call the base class
	
    int cxl = 100;
	int cyr = 35;
	int cx = lpcs->cx;
	int cy = lpcs->cy;
	if (!m_wndSplitter1.CreateStatic(this, 1, 2))
	{
		TRACE0("Failed to CreateStaticSplitter\n");
		return FALSE;
	}

	if (!m_wndSplitter1.CreateView(0, 0,
		RUNTIME_CLASS(CNameView), CSize(cxl, cy), pContext))
	{
		TRACE0("Failed to create first pane\n");
		return FALSE;
	}
	if (!m_wndSplitter2.CreateStatic(
		&m_wndSplitter1,
		2, 1, 
		WS_CHILD | WS_VISIBLE,
		m_wndSplitter1.IdFromRowCol(0, 1)))	
	{
		TRACE0("Failed to create nested splitter\n");
		return FALSE;
	}

	if (!m_wndSplitter2.CreateView(0, 0,
		RUNTIME_CLASS(CTitleView), CSize(cx-cxl, cyr), pContext))
	{
		TRACE0("Failed to create second pane\n");
		return FALSE;
	}

	if (!m_wndSplitter2.CreateView(1, 0,
		RUNTIME_CLASS(CAna_32View), CSize(cx-cxl, cy-cyr), pContext))
	{
		TRACE0("Failed to create third pane\n");
		return FALSE;
	}

	m_wndSplitter2.SetActivePane(0,0);
	return TRUE;
}*/

⌨️ 快捷键说明

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