ReactOS  0.4.12-dev-18-gf469aca
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.

Referenced by HexEditWndProc().

◆ HEM_LOADBUFFER

#define HEM_LOADBUFFER   (HEM_BASE + 1)

Definition at line 19 of file hexedit.h.

Referenced by HexEditWndProc().

◆ HEM_SETMAXBUFFERSIZE

#define HEM_SETMAXBUFFERSIZE   (HEM_BASE + 3)

Definition at line 21 of file hexedit.h.

Referenced by HexEditWndProc().

◆ 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.

Referenced by RegisterHexEditorClass(), and UnregisterHexEditorClass().

◆ 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.

Referenced by modify_binary_dlgproc().

◆ HexEdit_GetBufferSize

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

Definition at line 33 of file hexedit.h.

Referenced by modify_binary_dlgproc().

◆ HexEdit_LoadBuffer

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

Definition at line 24 of file hexedit.h.

Referenced by modify_binary_dlgproc().

◆ HexEdit_SetMaxBufferSize

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

Definition at line 36 of file hexedit.h.

Referenced by HEXEDIT_Delete(), HEXEDIT_Paste(), HEXEDIT_WM_CHAR(), and HEXEDIT_WM_KEYDOWN().

Function Documentation

◆ RegisterHexEditorClass()

ATOM WINAPI RegisterHexEditorClass ( HINSTANCE  hInstance)

Definition at line 69 of file hexedit.c.

Referenced by InitInstance().

70 {
72 
74 
75  ZeroMemory(&WndClass, sizeof(WNDCLASSEXW));
76  WndClass.cbSize = sizeof(WNDCLASSEXW);
77  WndClass.style = CS_DBLCLKS;
78  WndClass.lpfnWndProc = HexEditWndProc;
79  WndClass.cbWndExtra = sizeof(PHEXEDIT_DATA);
80  WndClass.hInstance = hInstance;
81  WndClass.hCursor = LoadCursorW(NULL, IDC_IBEAM);
82  WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
84 
85  return RegisterClassEx(&WndClass);
86 }
#define RegisterClassEx
Definition: winuser.h:5703
int cbWndExtra
Definition: winuser.h:3173
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
struct HEXEDIT_DATA * PHEXEDIT_DATA
#define ZeroMemory
Definition: winbase.h:1635
struct _WNDCLASSEXW WNDCLASSEXW
#define COLOR_WINDOW
Definition: winuser.h:908
#define IDC_IBEAM
Definition: winuser.h:683
static UINT ClipboardFormatID
Definition: hexedit.c:54
HINSTANCE hInstance
Definition: charmap.c:20
LRESULT CALLBACK HexEditWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: hexedit.c:1419
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3179
HBRUSH hbrBackground
Definition: winuser.h:3177
UINT cbSize
Definition: winuser.h:3169
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HINSTANCE hInstance
Definition: winuser.h:3174
#define HEX_EDIT_CLASS_NAME
Definition: hexedit.h:3
HCURSOR hCursor
Definition: winuser.h:3176
#define CS_DBLCLKS
Definition: winuser.h:646
UINT style
Definition: winuser.h:3170
WNDPROC lpfnWndProc
Definition: winuser.h:3171
static const WCHAR ClipboardFormatName[]
Definition: hexedit.c:53
WCHAR WndClass[]
Definition: capicon.c:23

◆ UnregisterHexEditorClass()

BOOL WINAPI UnregisterHexEditorClass ( HINSTANCE  hInstance)

Definition at line 90 of file hexedit.c.

Referenced by ExitInstance().

91 {
92  return UnregisterClassW(HEX_EDIT_CLASS_NAME, hInstance);
93 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define HEX_EDIT_CLASS_NAME
Definition: hexedit.h:3