]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for old SDKs (VC6...) which don't define HDM_SETBITMAPMARGIN/Header_S...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Jan 2009 15:09:52 +0000 (15:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Jan 2009 15:09:52 +0000 (15:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/headerctrl.cpp

index 15a690a729113e04b336ec8a9d8013b139f309df..c4beb2534df2adbb8e60de1139ec59af98c422a3 100644 (file)
 #include "wx/msw/wrapcctl.h"
 #include "wx/msw/private.h"
 
+#ifndef HDM_SETBITMAPMARGIN
+    #define HDM_SETBITMAPMARGIN 0x1234
+#endif
+
+#ifndef Header_SetBitmapMargin
+    #define Header_SetBitmapMargin(hwnd, margin) \
+            ::SendMessage((hwnd), HDM_SETBITMAPMARGIN, (WPARAM)(margin), 0)
+#endif
+
 // from src/msw/listctrl.cpp
 extern int WXDLLIMPEXP_CORE wxMSWGetColumnClicked(NMHDR *nmhdr, POINT *ptClick);