initialdlg.cpp

来自「手机上设置通道号码」· C++ 代码 · 共 36 行

CPP
36
字号
// aboutdlg.cpp : implementation of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "resource.h"

#include "InitialDlg.h"

LRESULT CInitialDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
	CenterWindow(m_hWnd);

	::SetCursor(LoadCursor(NULL, IDC_WAIT));
	::SetTimer(m_hWnd,1,5000,NULL);
	SHDoneButton(m_hWnd,SHDB_HIDE);

	return TRUE;
}

LRESULT CInitialDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
	EndDialog(wID);
	::SetCursor(LoadCursor(NULL, IDC_NO));
	return 0;
}

LRESULT CInitialDlg::OnTimer(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{

	KillTimer(int(wParam));
	::EndDialog(m_hWnd,NULL);
	::SetCursor(LoadCursor(NULL, IDC_NO));
	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?