From: Vadim Zeitlin Date: Thu, 17 Feb 2000 08:04:28 +0000 (+0000) Subject: warning in GetItemFromPoint with mingw32 fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/81ef7f081883d150d49e52df92d226d1bb491a09?ds=sidebyside warning in GetItemFromPoint with mingw32 fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 9b0c6faea9..bb398e715e 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -247,7 +247,8 @@ static HTREEITEM GetItemFromPoint(HWND hwndTV, int x, int y) 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); } // ----------------------------------------------------------------------------