6 #ifndef _INC_CCtrlHexEdit_H
7 #define _INC_CCtrlHexEdit_H
12 #include "../GrayLibBase.h"
15 #include "../Geometry/cRectI.h"
18 #define IDR_POPUP_HEX_EDIT 500
22 class CCtrlHexEdit :
public CEdit
40 EDITMODE_TYPE m_currentMode;
49 BOOL m_bAddressIsWide;
51 BOOL m_bNoAddressChange;
67 BYTE* GetDataPtr()
const;
73 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
78 int GetData(LPBYTE p,
int len);
79 void SetData(LPBYTE p,
int len);
81 void SetSel(
int s,
int e);
82 void SetBPR(
size_t bpr);
83 void SetOptions(BOOL a, BOOL h, BOOL c, BOOL w);
84 virtual ~CCtrlHexEdit();
88 void ScrollIntoView(
int p);
89 void RepositionCaret(
int p);
90 void Move(
int x,
int y);
91 inline BOOL IsSelected(
void);
92 void UpdateScrollBars(
void);
93 void CreateEditCaret(
void);
94 void CreateAddressCaret(
void);
95 cPoint2i CalcPos(
int x,
int y);
96 void SelInsert(
int s,
int l);
97 void SelDelete(
int s,
int e);
98 inline void NormalizeSel(
void);
101 afx_msg
void OnContextMenu(
CWnd*,
CPoint point);
102 afx_msg
void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
103 afx_msg
void OnKillFocus(
CWnd* pNewWnd);
104 afx_msg
void OnPaint();
105 afx_msg
void OnSetFocus(
CWnd* pOldWnd);
106 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
107 afx_msg
void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
108 afx_msg
void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
109 afx_msg UINT OnGetDlgCode();
110 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
111 afx_msg
void OnLButtonDown(UINT nFlags,
CPoint point);
112 afx_msg
void OnLButtonDblClk(UINT nFlags,
CPoint point);
113 afx_msg
void OnMouseMove(UINT nFlags,
CPoint point);
114 afx_msg
void OnLButtonUp(UINT nFlags,
CPoint point);
115 afx_msg
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
116 afx_msg
void OnEditClear();
117 afx_msg
void OnEditCopy();
118 afx_msg
void OnEditCut();
119 afx_msg
void OnEditPaste();
120 afx_msg
void OnEditSelectAll();
121 afx_msg
void OnEditUndo();
122 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
125 DECLARE_MESSAGE_MAP()
cWndHandle CWnd
Definition: cWndHandle.h:669
cPoint2i CPoint
Compatible with MFC 2d CPoint,CRect.
Definition: cPoint2.h:65