[SNDVOL32] Add the small line dialog
[reactos.git] / base / applications / regedit / hexedit.h
index 5ee5e22..0e480ed 100644 (file)
@@ -1,6 +1,6 @@
 #pragma once
 
-#define HEX_EDIT_CLASS_NAME _T("HexEdit32")
+#define HEX_EDIT_CLASS_NAME     L"HexEdit32"
 
 ATOM WINAPI
 RegisterHexEditorClass(HINSTANCE hInstance);
@@ -8,30 +8,32 @@ BOOL WINAPI
 UnregisterHexEditorClass(HINSTANCE hInstance);
 
 /* styles */
-#define HES_READONLY   (0x800)
-#define HES_LOWERCASE  (0x10)
-#define HES_UPPERCASE  (0x8)
-#define HES_AUTOVSCROLL        (0x40)
-#define HES_HIDEADDRESS        (0x4)
+#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)
+#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))
+  SendMessageW((hWnd), HEM_LOADBUFFER, (WPARAM)(Buffer), (LPARAM)(Size))
 
 #define HexEdit_ClearBuffer(hWnd) \
-  SendMessage((hWnd), HEM_LOADBUFFER, 0, 0)
+  SendMessageW((hWnd), HEM_LOADBUFFER, 0, 0)
 
 #define HexEdit_CopyBuffer(hWnd, Buffer, nMax) \
-  SendMessage((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
+  SendMessageW((hWnd), HEM_COPYBUFFER, (WPARAM)(Buffer), (LPARAM)(nMax))
 
 #define HexEdit_GetBufferSize(hWnd) \
-  SendMessage((hWnd), HEM_COPYBUFFER, 0, 0)
+  SendMessageW((hWnd), HEM_COPYBUFFER, 0, 0)
 
 #define HexEdit_SetMaxBufferSize(hWnd, Size) \
-  SendMessage((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
+  SendMessageW((hWnd), HEM_SETMAXBUFFERSIZE, 0, (LPARAM)(Size))
+
+/* EOF */