Hardware defines spec.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-09-28 18:17:07 +00:00
parent 8300f815fa
commit 3180bc0e63
10 changed files with 25 additions and 25 deletions

View File

@@ -214,12 +214,12 @@ wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const
{
// take size according to layout
wxSize bestSize(
#ifdef __SMARTPHONE__
#ifdef 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)