]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless warning about -1 to WPARAM conversion.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 16:42:56 +0000 (16:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 16:42:56 +0000 (16:42 +0000)
This was introduced by the last change to this file in r62058.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp

index 6910839ffb573a048f973c3f680f6d1ea9b7f361..5abb57a2c55e5739a35e4b0c3c150414a17585e7 100644 (file)
@@ -632,7 +632,7 @@ int wxChoice::SetHeightSimpleComboBox(int nItems) const
 {
     int cx, cy;
     wxGetCharSize( GetHWND(), &cx, &cy, GetFont() );
-    int hItem = SendMessage(GetHwnd(), CB_GETITEMHEIGHT, -1, 0);
+    int hItem = SendMessage(GetHwnd(), CB_GETITEMHEIGHT, (WPARAM)-1, 0);
     return EDIT_HEIGHT_FROM_CHAR_HEIGHT( cy ) * wxMin( wxMax( nItems, 3 ), 6 ) + hItem - 1;
 }