Files
mirror-processhacker/2.x/trunk/phlib/include/hexedit.h
T
wj32 6641957a43 * bump to 2.10
* fixed some definitions

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3892 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2010-12-15 22:31:41 +00:00

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