vcfbuilderhostview.cpp
来自「这是VCF框架的代码」· C++ 代码 · 共 130 行
CPP
130 行
// VCFBuilderHostView.cpp : implementation file//#include "stdafx.h"#include "VCFBuilderHostView.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif//using namespace VCF;//using namespace VCFBuilder;/////////////////////////////////////////////////////////////////////////////// VCFBuilderHostViewIMPLEMENT_DYNCREATE(VCFBuilderHostView, CView)VCFBuilderHostView::VCFBuilderHostView(){ //m_vcfBuilderUIPanel = NULL;}VCFBuilderHostView::~VCFBuilderHostView(){}BEGIN_MESSAGE_MAP(VCFBuilderHostView, CView) //{{AFX_MSG_MAP(VCFBuilderHostView) ON_WM_CREATE() ON_WM_SIZE() //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// VCFBuilderHostView drawingvoid VCFBuilderHostView::OnDraw(CDC* pDC){ CRect r(0,0,0,0); GetClientRect( r ); CBrush back; back.CreateSolidBrush( GetSysColor( COLOR_WINDOW ) ); pDC->FillRect( r, &back );}/////////////////////////////////////////////////////////////////////////////// VCFBuilderHostView diagnostics#ifdef _DEBUGvoid VCFBuilderHostView::AssertValid() const{ CView::AssertValid();}void VCFBuilderHostView::Dump(CDumpContext& dc) const{ CView::Dump(dc);}#endif //_DEBUG/////////////////////////////////////////////////////////////////////////////// VCFBuilderHostView message handlersBOOL VCFBuilderHostView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Add your specialized code here and/or call the base class CView::PreCreateWindow(cs); cs.lpszClass = AfxRegisterWndClass( CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW, NULL, NULL,NULL ); return TRUE;}void VCFBuilderHostView::OnInitialUpdate() { CView::OnInitialUpdate(); // TODO: Add your specialized code here and/or call the base class }int VCFBuilderHostView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; /* VCFBuilderUIApplication::getVCFBuilderUI()->initMainWindow(); m_vcfBuilderUIPanel = VCFBuilderUIApplication::getVCFBuilderUI()->getMainUIPanel(); HWND hWnd = (HWND)m_vcfBuilderUIPanel->getPeer()->getHandleID(); ::SetParent( hWnd, this->m_hWnd ); */ //Control* c = NULL; return 0;}void VCFBuilderHostView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); /* if ( NULL != m_vcfBuilderUIPanel ) { m_vcfBuilderUIPanel->setBounds( &Rect(0,0,cx,cy) ); } */}void VCFBuilderHostView::newProject(){ /* if ( NULL != m_vcfBuilderUIPanel ) { m_vcfBuilderUIPanel->newProject( NULL ); } */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?