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:
parent
715824d58d
commit
7fc1b0c7ca
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user