static HTREEITEM GetItemFromPoint(HWND hwndTV, int x, int y)
{
- TVHITTESTINFO tvht;
+ TV_HITTESTINFO tvht;
tvht.pt.x = x;
tvht.pt.y = y;
- return TreeView_HitTest(hwndTV, &tvht);
+ // TreeView_HitTest() doesn't do the right cast in mingw32 headers
+ return (HTREEITEM)TreeView_HitTest(hwndTV, &tvht);
}
// ----------------------------------------------------------------------------
!defined( __BORLANDC__ ) && \
!defined( __WATCOMC__ ) && \
(!defined(__VISUALC__) || (__VISUALC__ > 1010))
+
+#ifndef TVS_CHECKBOXES
+#define TVS_CHECKBOXES 0x0100
+#endif
+
// we emulate the multiple selection tree controls by using checkboxes: set
// up the image list we need for this if we do have multiple selections
if ( m_windowStyle & wxTR_MULTIPLE )