mirror of
https://github.com/reactos/reactos.git
synced 2024-06-25 23:41:35 +00:00
![Ged Murphy](/assets/img/avatar_default.png)
- Whilst this is non-standard and potentially makes the code less portable, it's supported by both gcc and msvc and should bringg increased compilation speed due to its optimized behaviour (doesn't need to invoke the preprocessor) - Patch by Amine Khaldi [amine.khaldi@reactos.org] svn path=/trunk/; revision=45685
38 lines
1 KiB
C
38 lines
1 KiB
C
#pragma once
|
|
|
|
#define HEX_EDIT_CLASS_NAME _T("HexEdit32")
|
|
|
|
ATOM WINAPI
|
|
RegisterHexEditorClass(HINSTANCE hInstance);
|
|
BOOL WINAPI
|
|
UnregisterHexEditorClass(HINSTANCE hInstance);
|
|
|
|
/* styles */
|
|
#define HES_READONLY (0x800)
|
|
#define HES_LOWERCASE (0x10)
|
|
#define HES_UPPERCASE (0x8)
|
|
#define HES_AUTOVSCROLL (0x40)
|
|
#define HES_HIDEADDRESS (0x4)
|
|
|
|
/* messages */
|
|
#define HEM_BASE (WM_USER + 50)
|
|
#define HEM_LOADBUFFER (HEM_BASE + 1)
|
|
#define HEM_COPYBUFFER (HEM_BASE + 2)
|
|
#define HEM_SETMAXBUFFERSIZE (HEM_BASE + 3)
|
|
|
|
/* macros */
|
|
#define HexEdit_LoadBuffer(hWnd, Buffer, Size) \
|
|
SendMessage((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))
|
|
|
|
#define HexEdit_ClearBuffer(hWnd) \
|
|
SendMessage((hWnd), HEM_LOADBUFFER, 0, 0)
|
|
|
|
#define HexEdit_CopyBuffer(hWnd, Buffer, nMax) \
|
|
SendMessage((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
|
|
|
|
#define HexEdit_GetBufferSize(hWnd) \
|
|
SendMessage((hWnd), HEM_COPYBUFFER, 0, 0)
|
|
|
|
#define HexEdit_SetMaxBufferSize(hWnd, Size) \
|
|
SendMessage((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
|