mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
6641957a43
* fixed some definitions git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3892 21ef857c-d57f-4fe0-8362-d861dc6d29cd
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#ifndef _PH_HEXEDIT_H
|
|
#define _PH_HEXEDIT_H
|
|
|
|
#define PH_HEXEDIT_CLASSNAME L"PhHexEdit"
|
|
|
|
#define EDIT_NONE 0
|
|
#define EDIT_ASCII 1
|
|
#define EDIT_HIGH 2
|
|
#define EDIT_LOW 3
|
|
|
|
BOOLEAN PhHexEditInitialization();
|
|
|
|
HWND PhCreateHexEditControl(
|
|
__in HWND ParentHandle,
|
|
__in INT_PTR Id
|
|
);
|
|
|
|
#define HEM_SETBUFFER (WM_APP + 1401)
|
|
#define HEM_SETDATA (WM_APP + 1402)
|
|
#define HEM_GETBUFFER (WM_APP + 1403)
|
|
#define HEM_SETSEL (WM_APP + 1404)
|
|
#define HEM_SETEDITMODE (WM_APP + 1405)
|
|
|
|
#define HexEdit_SetBuffer(hWnd, Buffer, Length) \
|
|
SendMessage((hWnd), HEM_SETBUFFER, (WPARAM)(Length), (LPARAM)(Buffer))
|
|
|
|
#define HexEdit_SetData(hWnd, Buffer, Length) \
|
|
SendMessage((hWnd), HEM_SETDATA, (WPARAM)(Length), (LPARAM)(Buffer))
|
|
|
|
#define HexEdit_GetBuffer(hWnd, Buffer, Length) \
|
|
((PUCHAR)SendMessage((hWnd), HEM_GETBUFFER, 0, 0))
|
|
|
|
#define HexEdit_SetSel(hWnd, Start, End) \
|
|
SendMessage((hWnd), HEM_SETSEL, (WPARAM)(Start), (LPARAM)(End))
|
|
|
|
#define HexEdit_SetEditMode(hWnd, Mode) \
|
|
SendMessage((hWnd), HEM_SETEDITMODE, (WPARAM)(Mode), 0)
|
|
|
|
#endif
|