X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e733ec74cdef0818ec171376f99049362b643b2..730b772b41ad9df76e5226290bb9eb917ea161f0:/src/msw/headerctrl.cpp?ds=sidebyside diff --git a/src/msw/headerctrl.cpp b/src/msw/headerctrl.cpp index 2fb4dea8c1..21d83f6388 100644 --- a/src/msw/headerctrl.cpp +++ b/src/msw/headerctrl.cpp @@ -23,6 +23,8 @@ #pragma hdrstop #endif +#if wxUSE_HEADERCTRL + #ifndef WX_PRECOMP #include "wx/log.h" #endif // WX_PRECOMP @@ -78,7 +80,7 @@ WXDWORD wxHeaderCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const { WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle); - if ( style & wxHD_DRAGDROP ) + if ( style & wxHD_ALLOW_REORDER ) msStyle |= HDS_DRAGDROP; // the control looks nicer with these styles and there doesn't seem to be @@ -660,3 +662,5 @@ bool wxHeaderCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) } #endif // wxHAS_GENERIC_HEADERCTRL + +#endif // wxUSE_HEADERCTRL