The changes of r72953 removed the check for WINVER around the code using
COMBOBOXINFO but it's still needed with VC^, so restore it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72958
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// and its child part. I.e. arrow, separators, etc.
wxSize tsize(xlen, 0);
+ // FIXME-VC6: Only VC6 needs this guard, see WINVER definition in
+ // include/wx/msw/wrapwin.h
+#if defined(WINVER) && WINVER >= 0x0500
WinStruct<COMBOBOXINFO> info;
if ( MSWGetComboBoxInfo(&info) )
{
+ info.rcItem.left + 3; // right and extra margins
}
else // Just use some rough approximation.
+#endif // WINVER >= 0x0500
{
tsize.x += 4*cHeight;
}