X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ada9a70eb6537fc24dd1722f0b654cefc13709d7..0bf1e7cb96fc13d063f63c120983afa5a1537d0e:/src/msw/control.cpp?ds=sidebyside diff --git a/src/msw/control.cpp b/src/msw/control.cpp index cb662e9ad9..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)