#endif /* wxMGL */
/* Hopefully we can emulate these dialogs in due course */
-#ifdef __SMARTPHONE__
+#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
# ifdef wxUSE_COLOURDLG
# undef wxUSE_COLOURDLG
# define wxUSE_COLOURDLG 0
# endif
-#endif /* __SMARTPHONE__ */
+#endif /* __SMARTPHONE__ && __WXWINCE__ */
/* generic controls dependencies */
#if defined(__WXUNIVERSAL__)
#include "wx/univ/choice.h"
-#elif defined(__SMARTPHONE__)
+#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/choicece.h"
#elif defined(__WXMSW__)
#include "wx/msw/choice.h"
// Universal and non-port related switches with need for generic implementation
#if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
- defined(__SMARTPHONE__) || \
defined(__SALFORDC__) || \
!wxUSE_OLE || \
(defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
#include "wx/generic/dirdlgg.h"
#define wxDirDialog wxGenericDirDialog
+// MS Smartphone
+#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
+
+ #include "wx/generic/dirdlgg.h"
+ #define wxDirDialog wxGenericDirDialog
+
// Native MSW
#elif defined(__WXMSW__)
protected:
-#ifndef __SMARTPHONE__
+#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
virtual void DoMoveWindow(int x, int y, int width, int height);
virtual void DoGetSize( int *width, int *height ) const;
virtual void DoGetPosition( int *x, int *y ) const;
-#endif // __SMARTPHONE__
+#endif // !(__SMARTPHONE__ && __WXWINCE__)
private:
wxArrayString m_fileNames;
void SetLastFocus(wxWindow *win) { m_winLastFocused = win; }
wxWindow *GetLastFocus() const { return m_winLastFocused; }
-#ifdef __SMARTPHONE__
- void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
- void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
+#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
+ virtual void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
+ virtual void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
-#endif // __SMARTPHONE__
+#endif // __SMARTPHONE__ && __WXWINCE__
protected:
// common part of all ctors
// the last focused child: we restore focus to it on activation
wxWindow *m_winLastFocused;
-#ifdef __SMARTPHONE__
+#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
class ButtonMenu
{
public:
void ReloadButton(ButtonMenu& button, UINT menuID);
void ReloadAllButtons();
-#endif // __SMARTPHONE__
+#endif // __SMARTPHONE__ && __WXWINCE__
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW)
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/wince/choicece.h
-// Purpose: wxChoice implementation for Smartphones
+// Purpose: wxChoice implementation for smart phones driven by WinCE
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 29.07.2004
// VC++'s #pragma to link against the libraries conditionally, instead of
// including libraries in project files.
-#ifdef __VISUALC__
+#if defined(__VISUALC__) && defined(__WXWINCE__)
#if _WIN32_WCE >= 400
#pragma comment(lib,"commdlg.lib")
#error "Unknown SDK, please fill-in missing pieces"
#endif
-#endif // __VISUALC__
+#endif // __VISUALC__ && __WXWINCE__
#endif // _WX_LIBRARIES_H_
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/wince/smartphone.h
-// Purpose: resources for Smartphone build
+// Purpose: resources for MS Smartphone build
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 01.05.2004
/////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/wince/textctrlce.h
-// Purpose: wxTextCtrl class - Smartphone implementation
+// Purpose: wxTextCtrl implementation for smart phones driven by WinCE
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 30.08.2004
#endif /* Win32 */
#if defined(__WXMSW__) || defined(__WIN32__)
-# if !defined(__WINDOWS__)
-# define __WINDOWS__
-# endif
+# if !defined(__WINDOWS__)
+# define __WINDOWS__
+# endif
#endif
#ifdef __WINE__
-# ifndef __WIN95__
-# define __WIN95__
-# endif
+# ifndef __WIN95__
+# define __WIN95__
+# endif
#endif /* WINE */
-/* detect SmartPhone */
+/* detect MS SmartPhone */
#if defined( WIN32_PLATFORM_WFSP )
-# ifndef __SMARTPHONE__
-# define __SMARTPHONE__
-# endif
+# ifndef __SMARTPHONE__
+# define __SMARTPHONE__
+# endif
+# ifndef __WXWINCE__
+# define __WXWINCE__
+# endif
#endif
/* detect PocketPC */
#if defined( WIN32_PLATFORM_PSPC )
-# ifndef __POCKETPC__
-# define __POCKETPC__
-# endif
+# ifndef __POCKETPC__
+# define __POCKETPC__
+# endif
+# ifndef __WXWINCE__
+# define __WXWINCE__
+# endif
#endif
/* detect Standard WinCE SDK */
#if defined( WCE_PLATFORM_STANDARDSDK )
-# ifndef __WINCE_STANDARDSDK__
-# define __WINCE_STANDARDSDK__
-# endif
+# ifndef __WINCE_STANDARDSDK__
+# define __WINCE_STANDARDSDK__
+# endif
+# ifndef __WXWINCE__
+# define __WXWINCE__
+# endif
#endif
#if defined(_WIN32_WCE) && !defined(WIN32_PLATFORM_WFSP) && !defined(WIN32_PLATFORM_PSPC)
# define __HANDHELDPC__
# endif
# endif
+# ifndef __WXWINCE__
+# define __WXWINCE__
+# endif
#endif
/*
#include "wx/x11/textctrl.h"
#elif defined(__WXUNIVERSAL__)
#include "wx/univ/textctrl.h"
-#elif defined(__SMARTPHONE__)
+#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/textctrlce.h"
#elif defined(__WXMSW__)
#include "wx/msw/textctrl.h"
// Attracts the users attention to this window if the application is
// inactive (should be called when a background event occurs)
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
-
+
// Is this the active frame (highlighted in the taskbar)?
virtual bool IsActive()
{ return (wxGetTopLevelParent(FindFocus()) == this); }
+#if defined(__SMARTPHONE__)
+ virtual void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL) = 0;
+ virtual void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL) = 0;
+#endif // __SMARTPHONE__
+
// implementation only from now on
// -------------------------------