4 #define HEX_EDIT_CLASS_NAME _T("HexEdit32")
7 RegisterHexEditorClass(HINSTANCE hInstance
);
9 UnregisterHexEditorClass(HINSTANCE hInstance
);
12 #define HES_READONLY (0x800)
13 #define HES_LOWERCASE (0x10)
14 #define HES_UPPERCASE (0x8)
15 #define HES_AUTOVSCROLL (0x40)
16 #define HES_HIDEADDRESS (0x4)
19 #define HEM_BASE (WM_USER + 50)
20 #define HEM_LOADBUFFER (HEM_BASE + 1)
21 #define HEM_COPYBUFFER (HEM_BASE + 2)
22 #define HEM_SETMAXBUFFERSIZE (HEM_BASE + 3)
25 #define HexEdit_LoadBuffer(hWnd, Buffer, Size) \
26 SendMessage((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))
28 #define HexEdit_ClearBuffer(hWnd) \
29 SendMessage((hWnd), HEM_LOADBUFFER, 0, 0)
31 #define HexEdit_CopyBuffer(hWnd, Buffer, nMax) \
32 SendMessage((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
34 #define HexEdit_GetBufferSize(hWnd) \
35 SendMessage((hWnd), HEM_COPYBUFFER, 0, 0)
37 #define HexEdit_SetMaxBufferSize(hWnd, Size) \
38 SendMessage((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
40 #endif /* __HEXEDIT_H */