3#define HEX_EDIT_CLASS_NAME L"HexEdit32"
11#define HES_READONLY (0x800)
12#define HES_LOWERCASE (0x10)
13#define HES_UPPERCASE (0x8)
14#define HES_AUTOVSCROLL (0x40)
15#define HES_HIDEADDRESS (0x4)
18#define HEM_BASE (WM_USER + 50)
19#define HEM_LOADBUFFER (HEM_BASE + 1)
20#define HEM_COPYBUFFER (HEM_BASE + 2)
21#define HEM_SETMAXBUFFERSIZE (HEM_BASE + 3)
24#define HexEdit_LoadBuffer(hWnd, Buffer, Size) \
25 SendMessageW((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))
27#define HexEdit_ClearBuffer(hWnd) \
28 SendMessageW((hWnd), HEM_LOADBUFFER, 0, 0)
30#define HexEdit_CopyBuffer(hWnd, Buffer, nMax) \
31 SendMessageW((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
33#define HexEdit_GetBufferSize(hWnd) \
34 SendMessageW((hWnd), HEM_COPYBUFFER, 0, 0)
36#define HexEdit_SetMaxBufferSize(hWnd, Size) \
37 SendMessageW((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
ATOM WINAPI RegisterHexEditorClass(HINSTANCE hInstance)
BOOL WINAPI UnregisterHexEditorClass(HINSTANCE hInstance)