📄 dominominderdlg.h
字号:
// DominoMinderDlg.h : header file
//
#if !defined(AFX_DOMINOMINDERDLG_H__BCB9E0CE_B748_40CF_9AD3_8FB8335DB6C6__INCLUDED_)
#define AFX_DOMINOMINDERDLG_H__BCB9E0CE_B748_40CF_9AD3_8FB8335DB6C6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <mmsystem.h>
#include "Log.h"
#include "Config.h"
#include "TrayIcon.h"
#include "TabSheet.h"
#include "UserLogin.h"
#include "DominoMessage.h"
#include "DlgConfigUser.h"
#include "DlgConfigServer.h"
#include "DlgMsgHistory.h"
#define WM_TRAYICON_NOTIFY (WM_USER + 1001)
/////////////////////////////////////////////////////////////////////////////
// CDominoMinderDlg dialog
class CDominoMinderDlg : public CDialog
{
// Construction
public:
CDominoMinderDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDominoMinderDlg)
enum { IDD = IDD_DOMINOMINDER_DIALOG };
CTabSheet m_oTabSheet;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDominoMinderDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDominoMinderDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnMinToTray();
virtual void OnOK();
virtual void OnCancel();
afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp); //托盘栏图标事件
afx_msg void OnMenuitemTrayExit();
afx_msg void OnMenuitemTraySetup();
afx_msg void OnMenuitemTrayLogin();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnMenuitemTrayAbout();
afx_msg void OnMenuitemTrayViewMsgHistory();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMenuitemTrayRefresh();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CDialog* m_pDlgAbout;
CDialog* m_pDlgMsgHistory;
CDlgConfigUser m_oDlgConfigUser;
CDlgConfigServer m_oDlgConfigServer;
CUserLogin m_oDlgUserLogin;
CTrayIcon m_oTrayIcon;
CDominoMessage *m_pDominoMsg;
CConfig *m_pCfg;
void ShowAboutDlg(); //显示关于窗口
void InitTabSheet(); //初始化设置窗口的标签
void InitInstance(); //初始化登陆窗口、系统托盘栏图标等
void MinimizeToTray(); //最小化,隐藏到系统托盘栏
void BringToFront(); //显示主窗口(设置)
void ExitApp(); //退出程序
bool UserLogin( bool bStartup ); //用户登陆输入用户名/密码
bool LoadConfig(); //装载并显示配置
bool SaveConfig(); //保存配置
void ShowMsg(); //获得并显示消息
void ShowMsg(CString strMsg, CString strMsgSimple, int nShowMode=0); //显示消息
void ShowMsgHistory(); //显示历史消息
bool KillMsgWindow( CString strWinCaption ); //关闭消息窗口,以显示新消息
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DOMINOMINDERDLG_H__BCB9E0CE_B748_40CF_9AD3_8FB8335DB6C6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -