📄 aboutdlg.h
字号:
//-----------------------------------------------------------------------//
// This is a part of the Multicopier. //
// Autor : Ahmed Ismaiel Zakaria //
// (C) 2002 FCIS Egypt All rights reserved //
// This code is provided "as is", with absolutely no warranty expressed //
// or implied. Any use is at your own risk. //
// You must obtain the author's consent before you can include this code //
// in a software library. //
// If the source code in this file is used in any application //
// then acknowledgement must be made to the author of this program //
// ahmed_ismaiel@hotmail.com //
//-----------------------------------------------------------------------//
// AboutDlg.h : Declaration of the CAboutDlg
#ifndef __ABOUTDLG_H_
#define __ABOUTDLG_H_
#include "resource.h" // main symbols
#include <atlhost.h>
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg
class CAboutDlg :
public CAxDialogImpl<CAboutDlg>
{
public:
CAboutDlg()
{
}
~CAboutDlg()
{
}
enum { IDD = IDD_ABOUTDLG };
BEGIN_MSG_MAP(CAboutDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_ID_HANDLER(IDOK, OnOK)
COMMAND_ID_HANDLER(IDC_BUTTON2, OnSendMail)
END_MSG_MAP()
// Handler prototypes:
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
return 1; // Let the system set the focus
}
LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
EndDialog(wID);
return 0;
}
LRESULT OnSendMail(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
::AfxBeginThread(SendMail,0,
THREAD_PRIORITY_NORMAL, 0, 0);
return 0;
}
};
#endif //__ABOUTDLG_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -