📄 introduce.cpp
字号:
// Introduce.cpp : implementation file
//
#include "stdafx.h"
#include "aomanage.h"
#include "Introduce.h"
#include "MainFrm.h"
#include "aoManage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CIntroduce dialog
CIntroduce::CIntroduce(CWnd* pParent /*=NULL*/)
: CDialog(CIntroduce::IDD, pParent)
{
//{{AFX_DATA_INIT(CIntroduce)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CIntroduce::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CIntroduce)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CIntroduce, CDialog)
//{{AFX_MSG_MAP(CIntroduce)
ON_WM_ERASEBKGND()
ON_WM_CLOSE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CIntroduce message handlers
BOOL CIntroduce::OnEraseBkgnd(CDC *pDC)
{
HBITMAP hBmp=(HBITMAP)LoadImage(AfxGetInstanceHandle(),"res\\introduce.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
CBitmap bmp;
bmp.Attach(hBmp);
CDC dcMem;
dcMem.CreateCompatibleDC(GetWindowDC());
dcMem.SelectObject(&bmp);
GetWindowDC()->BitBlt(0,0,500,500,&dcMem,0,0,SRCCOPY);
DWORD dwTime=GetTickCount();
while (GetTickCount()-dwTime<1000);
PostMessage(WM_CLOSE);
return TRUE;
}
void CIntroduce::OnClose()
{
CDialog::OnClose();
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
return;
AfxGetApp()->m_pMainWnd = pMainFrame;
pMainFrame->ShowWindow(SW_SHOW);
pMainFrame->UpdateWindow();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -