📄 guiviewworktab.cpp
字号:
//-----------------------------------------------------------------------//
// This is a part of the GuiLib MFC Extention. //
// Autor : Francisco Campos //
// (C) 2002 Francisco Campos <www.beyondata.com> All rights reserved //
// This code is provided "as is", with absolutely no warranty expressed //
// or implied. Any use is at your own risk. //
// You must obtain the author's consent before you can include this code //
// in a software library. //
// If the source code in this file is used in any application //
// then acknowledgement must be made to the author of this program //
// fco_campos@tutopia.com //
//-----------------------------------------------------------------------//
#include "stdafx.h"
#include "..\header\GuiLib.h"
#include "..\header\guiviewworktab.h"
// CGuiViewWorkTab
IMPLEMENT_DYNCREATE(CGuiViewWorkTab, CView)
CGuiViewWorkTab::CGuiViewWorkTab()
{
}
CGuiViewWorkTab::~CGuiViewWorkTab()
{
}
BEGIN_MESSAGE_MAP(CGuiViewWorkTab, CView)
ON_WM_CREATE()
ON_WM_SIZE()
END_MESSAGE_MAP()
// CGuiViewWorkTab drawing
void CGuiViewWorkTab::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
// CGuiViewWorkTab diagnostics
/*
#ifdef _DEBUG
void CGuiViewWorkTab::AssertValid() const
{
CView::AssertValid();
}
void CGuiViewWorkTab::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
#endif //_DEBUG
*/
// CGuiViewWorkTab message handlers
int CGuiViewWorkTab::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_guiWorktab.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,0,0),this,0x9999))
return -1;
// TODO: Add your specialized creation code here
return 0;
}
void CGuiViewWorkTab::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
m_guiWorktab.MoveWindow(0,0,cx,cy);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -