?? view3.cpp
字號:
// View3.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "View3.h"
#include "MainFrm.h"
#include "multiviewsView.h"
#include "View2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CView3
IMPLEMENT_DYNCREATE(CView3, CFormView)
CView3::CView3()
: CFormView(CView3::IDD)
{
//{{AFX_DATA_INIT(CView3)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CView3::~CView3()
{
}
void CView3::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CView3)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CView3, CFormView)
//{{AFX_MSG_MAP(CView3)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CView3 diagnostics
#ifdef _DEBUG
void CView3::AssertValid() const
{
CFormView::AssertValid();
}
void CView3::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CView3 message handlers
void CView3::OnButton1()
{
::PostMessage(AfxGetMainWnd()->m_hWnd,WM_USER_COMMAND, CMainFrame.View1, 0);
}
void CView3::OnButton2()
{
::PostMessage(AfxGetMainWnd()->m_hWnd,WM_USER_COMMAND, CMainFrame.View2, 0);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -