diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 332911d767..96818dd14d 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -729,7 +729,7 @@ bool wxTreeCtrl::IsVisible(const wxTreeItemId& item) const *(WXHTREEITEM *)&rect = (WXHTREEITEM)item; // FALSE means get item rect for the whole item, not only text - return SendMessage(GetHwnd(), TVM_GETITEMRECT, FALSE, &rect) != 0; + return SendMessage(GetHwnd(), TVM_GETITEMRECT, FALSE, (LPARAM)&rect) != 0; }