splashdlg.cpp
来自「C语言课程设计案例精编」· C++ 代码 · 共 69 行
CPP
69 行
// SplashDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Page.h"
#include "SplashDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSplashDlg dialog
CSplashDlg::CSplashDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSplashDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSplashDlg)
//}}AFX_DATA_INIT
n=0;
}
void CSplashDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSplashDlg)
DDX_Control(pDX, IDC_RECT, m_rect);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSplashDlg, CDialog)
//{{AFX_MSG_MAP(CSplashDlg)
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSplashDlg message handlers
void CSplashDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
CDialog::OnOK();
}
BOOL CSplashDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetWindowLong(GetSafeHwnd(),GWL_EXSTYLE,WS_EX_TOOLWINDOW);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?