📄 warcraftkeydlg.h
字号:
// WarcraftKeyDlg.h : header file
//
#if !defined(AFX_WARCRAFTKEYDLG_H__D41BD2C0_1FDD_4D82_8CDC_4A76E2B2FA8E__INCLUDED_)
#define AFX_WARCRAFTKEYDLG_H__D41BD2C0_1FDD_4D82_8CDC_4A76E2B2FA8E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
#include <map>
typedef std::vector<int> CIntList;
struct tagKey
{
int m_nDestKey;
int m_nRegID;
};
struct datastruct
{
int SrcCode_;
int DestCode_;
CString SrcStr;
};
//struct tagKey_
//{
// int m_nSrcKey;
// int m_nRegID;
//};
typedef std::map<int, tagKey> CIntMap;
//typedef std::map<int, tagKey_> CIntMap;
/////////////////////////////////////////////////////////////////////////////
// CWarcraftKeyDlg dialog
class CWarcraftKeyDlg : public CDialog
{
// Construction
public:
CWarcraftKeyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CWarcraftKeyDlg)
enum { IDD = IDD_WARCRAFTKEY_DIALOG };
CListBox m_ctlMapKey;
CComboBox m_ctlDest;
CComboBox m_ctlSrc;
int m_nDest;
int m_nSrc;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWarcraftKeyDlg)
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(CWarcraftKeyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDeleteKey();
afx_msg void OnMakeKey();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnClose();
afx_msg void OnAbout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CIntList m_IdList;
CIntMap m_KeyMap;
CIntMap m_KeyMap_;
BOOL m_bShowSelfHP;
BOOL m_bShowEmenyHP;
BOOL m_PressReturn;
//static UINT WM_SHOWTASK;
CMenu m_menu;
private:
void OnHotKeyMsg(WPARAM wParam, LPARAM lParam);
void OnInitKeyList();
void OnUpdateKeyBox();
void RevertData();
void toTray();
afx_msg LRESULT onShowTask(WPARAM wParam,LPARAM lParam);
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WARCRAFTKEYDLG_H__D41BD2C0_1FDD_4D82_8CDC_4A76E2B2FA8E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -