2026-01-02 20:00:18 +01:00
|
|
|
|
#pragma once
|
2019-01-05 20:21:43 +08:00
|
|
|
|
#include "IOCPServer.h"
|
|
|
|
|
|
#include "afxwin.h"
|
|
|
|
|
|
|
2026-01-02 20:00:18 +01:00
|
|
|
|
// 无论光标位置在哪,新输入的文字总是出现在文本末尾
|
2025-10-15 04:32:59 +08:00
|
|
|
|
class CAutoEndEdit : public CEdit
|
|
|
|
|
|
{
|
2025-04-06 16:23:10 +08:00
|
|
|
|
public:
|
2025-10-15 04:32:59 +08:00
|
|
|
|
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
|
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
2025-04-06 16:23:10 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-01-02 20:00:18 +01:00
|
|
|
|
// CShellDlg 对话框
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
2025-06-28 23:52:26 +08:00
|
|
|
|
class CShellDlg : public DialogBase
|
2019-01-05 20:21:43 +08:00
|
|
|
|
{
|
2025-10-15 04:32:59 +08:00
|
|
|
|
DECLARE_DYNAMIC(CShellDlg)
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
|
|
|
|
|
public:
|
2025-10-15 04:32:59 +08:00
|
|
|
|
CShellDlg(CWnd* pParent = NULL, Server* IOCPServer = NULL, CONTEXT_OBJECT *ContextObject = NULL);
|
|
|
|
|
|
virtual ~CShellDlg();
|
2025-06-28 23:52:26 +08:00
|
|
|
|
|
2025-10-15 04:32:59 +08:00
|
|
|
|
VOID OnReceiveComplete();
|
2025-06-28 23:52:26 +08:00
|
|
|
|
|
2025-10-15 04:32:59 +08:00
|
|
|
|
UINT m_nReceiveLength;
|
|
|
|
|
|
VOID AddKeyBoardData(void);
|
2026-01-02 20:00:18 +01:00
|
|
|
|
int m_nCurSel; //获得当前数据所在位置;
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
2026-01-02 20:00:18 +01:00
|
|
|
|
// 对话框数据
|
2025-10-15 04:32:59 +08:00
|
|
|
|
enum { IDD = IDD_DIALOG_SHELL };
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
|
|
|
|
|
protected:
|
2026-01-02 20:00:18 +01:00
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
2025-10-15 04:32:59 +08:00
|
|
|
|
DECLARE_MESSAGE_MAP()
|
2019-01-05 20:21:43 +08:00
|
|
|
|
public:
|
2025-10-15 04:32:59 +08:00
|
|
|
|
virtual BOOL OnInitDialog();
|
|
|
|
|
|
afx_msg void OnClose();
|
|
|
|
|
|
CAutoEndEdit m_Edit;
|
|
|
|
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
|
|
|
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
|
|
|
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
2019-01-05 20:21:43 +08:00
|
|
|
|
};
|