diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 1cb3bd9386..3add1a764c 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -631,6 +631,9 @@ wxSize wxChoice::DoGetSizeFromTextSize(int xlen, int ylen) const // 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 info; if ( MSWGetComboBoxInfo(&info) ) { @@ -638,6 +641,7 @@ wxSize wxChoice::DoGetSizeFromTextSize(int xlen, int ylen) const + info.rcItem.left + 3; // right and extra margins } else // Just use some rough approximation. +#endif // WINVER >= 0x0500 { tsize.x += 4*cHeight; }