📄 skbdlg.h
字号:
// AADlg.h : header file
/////////////////////////////////////////////////////////////////////////////
// CSKBDlg dialog
//////位置由父窗口设置
class CSKBDlg : public CDialog
{
// Construction
public:
////CSKBDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSKBDlg)
enum { IDD = IDD_SOFTKB };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSKBDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSKBDlg)
virtual BOOL OnInitDialog();
afx_msg void On1();
afx_msg void On2();
afx_msg void On3();
afx_msg void On4();
afx_msg void On5();
afx_msg void On6();
afx_msg void On7();
afx_msg void On8();
afx_msg void On9();
afx_msg void On0();
afx_msg void OnCapslock();
afx_msg void OnA();
afx_msg void OnB();
afx_msg void OnC();
afx_msg void OnD();
afx_msg void OnE();
afx_msg void OnF();
afx_msg void OnG();
afx_msg void OnH();
afx_msg void OnI();
afx_msg void OnJ();
afx_msg void OnK();
afx_msg void OnL();
afx_msg void OnM();
afx_msg void OnN();
afx_msg void OnO();
afx_msg void OnP();
afx_msg void OnQ();
afx_msg void OnR();
afx_msg void OnS();
afx_msg void OnT();
afx_msg void OnU();
afx_msg void OnV();
afx_msg void OnW();
afx_msg void OnX();
afx_msg void OnY();
afx_msg void OnZ();
afx_msg void OnEnter();
afx_msg void OnSpace();
afx_msg void OnBs();
afx_msg void OnDel();
afx_msg void OnAdd();
afx_msg void OnSubtract();
afx_msg void OnMulti();
afx_msg void OnDivide();
afx_msg void OnDoublepoint();
afx_msg void OnComma();
afx_msg void OnFullstop();
afx_msg void OnQuestionmark();
afx_msg void OnExcalmatorymark();
afx_msg void OnAt();
afx_msg void OnMoney();
afx_msg void OnPercent();
afx_msg void OnLeftparenthesis();
afx_msg void OnRightparenthesis();
afx_msg void OnEqualmark();
afx_msg void OnSolidus();
afx_msg void OnSmall();
afx_msg void OnBig();
afx_msg void OnLeft();
afx_msg void OnRight();
afx_msg void OnUp();
afx_msg void OnDown();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CSKBDlg(CWnd* pWnd);
BOOL Create();
private:
CWnd* m_pParentWnd; ////父窗口
CWnd* m_pTargetWnd; ///目标窗口指针
BOOL IsLowerCase; ///小写字母时为真
public:
void SetTargetWnd(CWnd* pWnd) ///指定目标窗口
{
m_pTargetWnd = pWnd;
}
void ExecuteNumKey(UINT nVKey); //////数字键
void ExecuteLetterKey(UINT nVKey); //////字母键
void ExecuteChrKey(UINT nVKey); ////符号键,有的需要上档键
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -