ReactOS 0.4.16-dev-303-g11d5cb8
hexedit.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HEX_EDIT_CLASS_NAME   L"HexEdit32"
 
#define HES_READONLY   (0x800)
 
#define HES_LOWERCASE   (0x10)
 
#define HES_UPPERCASE   (0x8)
 
#define HES_AUTOVSCROLL   (0x40)
 
#define HES_HIDEADDRESS   (0x4)
 
#define HEM_BASE   (WM_USER + 50)
 
#define HEM_LOADBUFFER   (HEM_BASE + 1)
 
#define HEM_COPYBUFFER   (HEM_BASE + 2)
 
#define HEM_SETMAXBUFFERSIZE   (HEM_BASE + 3)
 
#define HexEdit_LoadBuffer(hWnd, Buffer, Size)    SendMessageW((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))
 
#define HexEdit_ClearBuffer(hWnd)    SendMessageW((hWnd), HEM_LOADBUFFER, 0, 0)
 
#define HexEdit_CopyBuffer(hWnd, Buffer, nMax)    SendMessageW((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
 
#define HexEdit_GetBufferSize(hWnd)    SendMessageW((hWnd), HEM_COPYBUFFER, 0, 0)
 
#define HexEdit_SetMaxBufferSize(hWnd, Size)    SendMessageW((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
 

Functions

ATOM WINAPI RegisterHexEditorClass (HINSTANCE hInstance)
 
BOOL WINAPI UnregisterHexEditorClass (HINSTANCE hInstance)
 

Macro Definition Documentation

◆ HEM_BASE

#define HEM_BASE   (WM_USER + 50)

Definition at line 18 of file hexedit.h.

◆ HEM_COPYBUFFER

#define HEM_COPYBUFFER   (HEM_BASE + 2)

Definition at line 20 of file hexedit.h.

◆ HEM_LOADBUFFER

#define HEM_LOADBUFFER   (HEM_BASE + 1)

Definition at line 19 of file hexedit.h.

◆ HEM_SETMAXBUFFERSIZE

#define HEM_SETMAXBUFFERSIZE   (HEM_BASE + 3)

Definition at line 21 of file hexedit.h.

◆ HES_AUTOVSCROLL

#define HES_AUTOVSCROLL   (0x40)

Definition at line 14 of file hexedit.h.

◆ HES_HIDEADDRESS

#define HES_HIDEADDRESS   (0x4)

Definition at line 15 of file hexedit.h.

◆ HES_LOWERCASE

#define HES_LOWERCASE   (0x10)

Definition at line 12 of file hexedit.h.

◆ HES_READONLY

#define HES_READONLY   (0x800)

Definition at line 11 of file hexedit.h.

◆ HES_UPPERCASE

#define HES_UPPERCASE   (0x8)

Definition at line 13 of file hexedit.h.

◆ HEX_EDIT_CLASS_NAME

#define HEX_EDIT_CLASS_NAME   L"HexEdit32"

Definition at line 3 of file hexedit.h.

◆ HexEdit_ClearBuffer

#define HexEdit_ClearBuffer (   hWnd)     SendMessageW((hWnd), HEM_LOADBUFFER, 0, 0)

Definition at line 27 of file hexedit.h.

◆ HexEdit_CopyBuffer

#define HexEdit_CopyBuffer (   hWnd,
  Buffer,
  nMax 
)     SendMessageW((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))

Definition at line 30 of file hexedit.h.

◆ HexEdit_GetBufferSize

#define HexEdit_GetBufferSize (   hWnd)     SendMessageW((hWnd), HEM_COPYBUFFER, 0, 0)

Definition at line 33 of file hexedit.h.

◆ HexEdit_LoadBuffer

#define HexEdit_LoadBuffer (   hWnd,
  Buffer,
  Size 
)     SendMessageW((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))

Definition at line 24 of file hexedit.h.

◆ HexEdit_SetMaxBufferSize

#define HexEdit_SetMaxBufferSize (   hWnd,
  Size 
)     SendMessageW((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))

Definition at line 36 of file hexedit.h.

Function Documentation

◆ RegisterHexEditorClass()

ATOM WINAPI RegisterHexEditorClass ( HINSTANCE  hInstance)

Definition at line 56 of file hexedit.c.

57{
59
61
63 WndClass.cbSize = sizeof(WNDCLASSEXW);
64 WndClass.style = CS_DBLCLKS;
65 WndClass.lpfnWndProc = HexEditWndProc;
66 WndClass.cbWndExtra = sizeof(PHEXEDIT_DATA);
67 WndClass.hInstance = hInstance;
69 WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
70 WndClass.lpszClassName = HEX_EDIT_CLASS_NAME;
71
73}
WCHAR WndClass[]
Definition: capicon.c:23
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
struct HEXEDIT_DATA * PHEXEDIT_DATA
LRESULT CALLBACK HexEditWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: hexedit.c:1406
static UINT ClipboardFormatID
Definition: hexedit.c:41
static const WCHAR ClipboardFormatName[]
Definition: hexedit.c:40
#define HEX_EDIT_CLASS_NAME
Definition: hexedit.h:3
#define ZeroMemory
Definition: winbase.h:1737
#define COLOR_WINDOW
Definition: winuser.h:921
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
#define CS_DBLCLKS
Definition: winuser.h:651
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2157
#define RegisterClassEx
Definition: winuser.h:5849
#define IDC_IBEAM
Definition: winuser.h:688
struct _WNDCLASSEXW WNDCLASSEXW

Referenced by InitInstance().

◆ UnregisterHexEditorClass()

BOOL WINAPI UnregisterHexEditorClass ( HINSTANCE  hInstance)

Definition at line 77 of file hexedit.c.

78{
80}
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)

Referenced by ExitInstance().