?? initdialog.cpp
字號:
// InitDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Msg.h"
#include "InitDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// InitDialog dialog
InitDialog::InitDialog(CWnd* pParent /*=NULL*/)
: CDialog(InitDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(MsgDialog)
//{{AFX_DATA_INIT(InitDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void InitDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(InitDialog)
// NOTE: the ClassWizard will add DDX and DDV calls here
DDX_Control(pDX, IDC_BMPSHOWW, m_bmpprog);
//DDX_Control(pDX, IDC_BMPSHOWW, m_bmpprog);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(InitDialog, CDialog)
//{{AFX_MSG_MAP(InitDialog)
ON_WM_TIMER()
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// InitDialog message handlers
BOOL InitDialog::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
//設置初始化對話框定時
SetTimer(1,1000,NULL);//2000->1000
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void InitDialog::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
//退出初始化對話框
//MessageBox(TEXT("OnTimer"),NULL,MB_OK);
PostMessage(WM_CLOSE);
KillTimer(1);
CDialog::OnTimer(nIDEvent);
}
void InitDialog::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
// Do not call CDialog::OnPaint() for painting messages
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -