hexdisp.h
来自「IO函数调用测试」· C头文件 代码 · 共 64 行
H
64 行
// HexDisp.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CHexDisplay window
class CHexDisplay : public CEdit
{
// Construction
public:
CHexDisplay();
// Attributes
public:
// Operations
public:
void SetWindowTextW(LPCWSTR s);
void SetWindowTextA(LPCSTR s);
BOOL SetWindowTextHexMaybe(LPBYTE s, DWORD len);
BOOL SetWindowTextHexMaybe(CDataArray & b) {
return SetWindowTextHexMaybe(&b.ElementAt(0), b.GetSize());}
void SetWindowTextAscii(LPCTSTR s);
void SetWindowTextHex(LPCTSTR s);
CDataArray & getRawData() { return rawData; }
int GetWindowTextA(LPSTR s, int count);
void GetWindowText(CString &s);
void GetWindowText(CDataArray & b);
int GetWindowTextLength();
BOOL toHex();
BOOL toAscii();
BOOL isHex();
BOOL isHexDigit(TCHAR ch);
UINT hexToBinary(TCHAR ch);
BOOL canAscii();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHexDisplay)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHexDisplay();
// Generated message map functions
protected:
BOOL inHex; // TRUE if in Hex mode, FALSE if in ASCII mode
CDataArray rawData; // raw data
CString makeHex(CDataArray & s);
//{{AFX_MSG(CHexDisplay)
afx_msg void OnDestroy();
afx_msg void OnUpdate();
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?