]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/choice.cpp
preserve type when loaded image is rescaled, #11543
[wxWidgets.git] / 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;
 }