X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1550d5f80d130fea1c05302e890095b7ad27e085..8f7fa6f8f9bc857cf809dcb6bf7c49227ef2ccf3:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 20ae5ca0dc..ef6dfe5b98 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -214,12 +214,12 @@ wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const { // take size according to layout wxSize bestSize( -#ifdef __SMARTPHONE__ +#if defined(__SMARTPHONE__) && defined(__WXWINCE__) 0,GetCharHeight() -#else !__SMARTPHONE__ +#else GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL), GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL) -#endif __SMARTPHONE__/!__SMARTPHONE__ +#endif ); // correct size as for undocumented MSW variants cases (WinCE and perhaps others)