[SHELL32_NEW]
[reactos.git] / include / reactos / wine / commctrl.h
index a4b5f51..6b1ae75 100644 (file)
 #define _WIN32_IE 0x0501
 #endif
 
-#include <psdk/commctrl.h>
+#include_next <commctrl.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #undef DPA_GetPtr
 LPVOID WINAPI DPA_GetPtr(HDPA, INT);
@@ -29,6 +33,19 @@ static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l',
   '_','D','r','a','g','L','i','s','t','M','s','g',0 };
 #endif
 
+#define ListView_InsertItemA(hwnd,pitem) \
+    (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
+#define ListView_InsertItemW(hwnd,pitem) \
+    (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
+
+#ifdef __cplusplus
+#define SNDMSGA ::SendMessageA
+#define SNDMSGW ::SendMessageW
+#else
+#define SNDMSGA SendMessageA
+#define SNDMSGW SendMessageW
+#endif
+
 #define FLATSB_CLASSA         "flatsb_class32"
 #if defined(__GNUC__)
 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
@@ -69,4 +86,8 @@ typedef struct
 #define TB_UNKWN45D              (WM_USER+93)
 #define TB_UNKWN464              (WM_USER+100)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _INC_COMMCTRL_WINE */