From 7fc1b0c7ca306b37779b9238dc992e310dded381 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Sep 2009 16:42:56 +0000 Subject: [PATCH] Fix harmless warning about -1 to WPARAM conversion. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 6910839ffb..5abb57a2c5 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -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; }