⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hexedit.h

📁 ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机理和API函数调用几乎相同。甚至可以兼容XP的程序。喜欢研究系统内核的人可以看一看。
💻 H
字号:
#ifndef __HEXEDIT_H
#define __HEXEDIT_H

#define HEX_EDIT_CLASS_NAME _T("HexEdit32")

ATOM STDCALL
RegisterHexEditorClass(HINSTANCE hInstance);
BOOL STDCALL
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))

#endif /* __HEXEDIT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -