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
This commit is contained in:
Vadim Zeitlin 2009-09-26 16:42:56 +00:00
parent 715824d58d
commit 7fc1b0c7ca

View 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;
}