ReactOS 0.4.15-dev-8235-gcd88a97
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 69 of file hexedit.c.

70{
72
74
76 WndClass.cbSize = sizeof(WNDCLASSEXW);
77 WndClass.style = CS_DBLCLKS;
78 WndClass.lpfnWndProc = HexEditWndProc;
79 WndClass.cbWndExtra = sizeof(PHEXEDIT_DATA);
80 WndClass.hInstance = hInstance;
82 WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
83 WndClass.lpszClassName = HEX_EDIT_CLASS_NAME;
84
86}
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:1419
static UINT ClipboardFormatID
Definition: hexedit.c:54
static const WCHAR ClipboardFormatName[]
Definition: hexedit.c:53
#define HEX_EDIT_CLASS_NAME
Definition: hexedit.h:3
#define ZeroMemory
Definition: winbase.h:1712
#define COLOR_WINDOW
Definition: winuser.h:918
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
#define CS_DBLCLKS
Definition: winuser.h:651
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2136
#define RegisterClassEx
Definition: winuser.h:5846
#define IDC_IBEAM
Definition: winuser.h:688
struct _WNDCLASSEXW WNDCLASSEXW

Referenced by InitInstance().

◆ UnregisterHexEditorClass()

BOOL WINAPI UnregisterHexEditorClass ( HINSTANCE  hInstance)

Definition at line 90 of file hexedit.c.

91{
93}
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)

Referenced by ExitInstance().