///////////////////////////////////////////////////////////////////////////////
// Name: src/msw/wince/choicece.cpp
-// Purpose: wxChoice implementation for Smartphones
+// Purpose: wxChoice implementation for smart phones driven by WinCE
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 29.07.2004
#include "wx/msw/missing.h"
#include "wx/msw/winundef.h"
-#if wxUSE_CHOICE && defined(__SMARTPHONE__)
+#if wxUSE_CHOICE && defined(__SMARTPHONE__) && defined(__WXWINCE__)
#if wxUSE_EXTENDED_RTTI
// TODO
WXDWORD msStyle = MSWGetStyle(GetWindowStyle(), & exStyle) ;
wxSize sizeText(size), sizeBtn(size);
- sizeBtn.x = GetBestSpinerSize(IsVertical(style)).x;
+ sizeBtn.x = GetBestSpinnerSize(IsVertical(style)).x;
if ( sizeText.x == wxDefaultCoord )
{
wxSize wxChoice::DoGetBestSize() const
{
- wxSize sizeBtn = GetBestSpinerSize(IsVertical(GetWindowStyle()));
+ wxSize sizeBtn = GetBestSpinnerSize(IsVertical(GetWindowStyle()));
sizeBtn.x += DEFAULT_ITEM_WIDTH + MARGIN_BETWEEN;
int y;
void wxChoice::DoMoveWindow(int x, int y, int width, int height)
{
- int widthBtn = GetBestSpinerSize(IsVertical(GetWindowStyle())).x;
+ int widthBtn = GetBestSpinnerSize(IsVertical(GetWindowStyle())).x;
int widthText = width - widthBtn - MARGIN_BETWEEN;
if ( widthText <= 0 )
{
wxConstCast(this, wxChoice)->m_hWnd = hWnd;
}
-#endif // wxUSE_CHOICE && __SMARTPHONE__
+#endif // wxUSE_CHOICE && __SMARTPHONE__ && __WXWINCE__