📄 splast.cpp
字号:
// Splast.cpp : implementation file
//
#include "stdafx.h"
#include "CalSurBase.h"
#include "Splast.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSplast dialog
CSplast::CSplast(CWnd* pParent /*=NULL*/)
: CDialog(CSplast::IDD, pParent)
{
bfsplast=FALSE;
//SetTimer(1, 15, NULL);
//{{AFX_DATA_INIT(CSplast)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSplast::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSplast)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSplast, CDialog)
//{{AFX_MSG_MAP(CSplast)
ON_BN_CLICKED(IDC_STATIC_SPLAT, OnStaticSplat)
ON_WM_TIMER()
ON_WM_LBUTTONDBLCLK()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSplast message handlers
void CSplast::OnStaticSplat()
{
//AfxMessageBox("test1");
bfsplast=TRUE;
OnOK();
//KillTimer(1);
}
void CSplast::OnTimer(UINT nIDEvent)
{
static long hide_l=0;
hide_l++;
//SetCursor(LoadCursor(NULL, IDC_WAIT));
//if(hide_l>=1000)
//{
KillTimer(1);
hide_l=0;
bfsplast=TRUE;
OnOK();
//}
}
BOOL CSplast::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
return CDialog::Create(IDD, pParentWnd);
}
void CSplast::OnOK()
{
//AfxMessageBox("test");
CDialog::OnOK();
}
void CSplast::OnLButtonDblClk(UINT nFlags, CPoint point)
{
//AfxMessageBox("test2");
CDialog::OnLButtonDblClk(nFlags, point);
OnOK();
}
BOOL CSplast::OnInitDialog()
{
CDialog::OnInitDialog();
SetCursor(LoadCursor(NULL, IDC_WAIT));
SetTimer(1, 10000, NULL);
// AfxMessageBox("test3");
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -