📄 cardview.cpp
字号:
// cardView.cpp : implementation file
//
#include "stdafx.h"
#include "testCard.h"
#include "cardView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// cardView
IMPLEMENT_DYNCREATE(cardView, CFormView)
cardView::cardView()
: CFormView(cardView::IDD)
{
//{{AFX_DATA_INIT(cardView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
cardView::~cardView()
{
}
void cardView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(cardView)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(cardView, CFormView)
//{{AFX_MSG_MAP(cardView)
ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// cardView diagnostics
#ifdef _DEBUG
void cardView::AssertValid() const
{
CFormView::AssertValid();
}
void cardView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// cardView message handlers
void cardView::OnSize(UINT nType, int cx, int cy)
{
this->ShowWindow(SW_MAXIMIZE);
CWnd *pchild = this->GetWindow(GW_CHILD);//只有一个顶层子窗口
if(pchild != NULL){
CRect rect;
this->GetWindowRect(&rect);
pchild->ScreenToClient(&rect);
pchild->SetWindowPos(NULL, 0, 0, rect.Width(), rect.Height(),
SWP_NOZORDER | SWP_NOACTIVATE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -