ReactOS  0.4.12-dev-36-g472787f
hexedit.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define HEX_EDIT_CLASS_NAME L"HexEdit32"
4 
9 
10 /* styles */
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)
16 
17 /* messages */
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)
22 
23 /* macros */
24 #define HexEdit_LoadBuffer(hWnd, Buffer, Size) \
25  SendMessageW((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))
26 
27 #define HexEdit_ClearBuffer(hWnd) \
28  SendMessageW((hWnd), HEM_LOADBUFFER, 0, 0)
29 
30 #define HexEdit_CopyBuffer(hWnd, Buffer, nMax) \
31  SendMessageW((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
32 
33 #define HexEdit_GetBufferSize(hWnd) \
34  SendMessageW((hWnd), HEM_COPYBUFFER, 0, 0)
35 
36 #define HexEdit_SetMaxBufferSize(hWnd, Size) \
37  SendMessageW((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
38 
39 /* EOF */
ATOM WINAPI RegisterHexEditorClass(HINSTANCE hInstance)
Definition: hexedit.c:69
WORD ATOM
Definition: dimm.idl:113
HINSTANCE hInstance
Definition: charmap.c:20
unsigned int BOOL
Definition: ntddk_ex.h:94
#define WINAPI
Definition: msvc.h:20
BOOL WINAPI UnregisterHexEditorClass(HINSTANCE hInstance)
Definition: hexedit.c:90