Go to the documentation of this file.
4 #define PH_HEXEDIT_CLASSNAME L"PhHexEdit"
15 #define HEM_SETBUFFER (WM_USER + 1)
16 #define HEM_SETDATA (WM_USER + 2)
17 #define HEM_GETBUFFER (WM_USER + 3)
18 #define HEM_SETSEL (WM_USER + 4)
19 #define HEM_SETEDITMODE (WM_USER + 5)
20 #define HEM_SETBYTESPERROW (WM_USER + 6)
22 #define HexEdit_SetBuffer(hWnd, Buffer, Length) \
23 SendMessage((hWnd), HEM_SETBUFFER, (WPARAM)(Length), (LPARAM)(Buffer))
25 #define HexEdit_SetData(hWnd, Buffer, Length) \
26 SendMessage((hWnd), HEM_SETDATA, (WPARAM)(Length), (LPARAM)(Buffer))
28 #define HexEdit_GetBuffer(hWnd, Length) \
29 ((PUCHAR)SendMessage((hWnd), HEM_GETBUFFER, (WPARAM)(Length), 0))
31 #define HexEdit_SetSel(hWnd, Start, End) \
32 SendMessage((hWnd), HEM_SETSEL, (WPARAM)(Start), (LPARAM)(End))
34 #define HexEdit_SetEditMode(hWnd, Mode) \
35 SendMessage((hWnd), HEM_SETEDITMODE, (WPARAM)(Mode), 0)
37 #define HexEdit_SetBytesPerRow(hWnd, BytesPerRow) \
38 SendMessage((hWnd), HEM_SETBYTESPERROW, (WPARAM)(BytesPerRow), 0)