]> git.saurik.com Git - wxWidgets.git/commitdiff
Small tweaks for WinCE compatibility
authorJulian Smart <julian@anthemion.co.uk>
Tue, 15 Jul 2003 13:15:48 +0000 (13:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 15 Jul 2003 13:15:48 +0000 (13:15 +0000)
Use generic folder dialog for WinCE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/msw/wince.rsp
include/wx/dirdlg.h
include/wx/hashmap.h
samples/calendar/calendar.cpp
samples/caret/caret.cpp
samples/dialogs/dialogs.cpp
src/common/appcmn.cpp

index 2b4ab92bb7fd2c69c72140a0be2b279f715b0262..99f020f17df489bd083ce6fe0f25dbb6182ba128 100644 (file)
@@ -4,3 +4,6 @@ src/msw/wince/wxWindowsCE.vcw
 samples/minimal/minimalCE.vcp
 samples/minimal/minimalCE.vcw
 
+samples/widgets/widgetsCE.vcp
+samples/widgets/widgetsCE.vcw
+
index 738b1013cf275cc8837ddf98d21791f721990c8e..cee0581f21e27ccfe669b7138d174aff9fd31157 100644 (file)
@@ -43,7 +43,7 @@ public:
 */
 
 #if defined(__WXMSW__)
-    #if defined(__WIN16__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
+    #if defined(__WXWINCE__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
         #include "wx/generic/dirdlgg.h"
         #define wxDirDialog wxGenericDirDialog
     #else
index 14d8684f5446e12ef2815dc6cffba4da6cf81fe2..23e685dd2d9484978ccf0b994b3983f6e22a8d81 100644 (file)
@@ -75,7 +75,9 @@ protected:
     static void** AllocTable( size_t sz )
     {
 #ifdef __WXWINCE__
-        return (void **)malloc(sz * sizeof(void*));
+        void** ptr = (void **)malloc(sz * sizeof(void*));
+        memset( ptr, 0, sz * sizeof(void*));
+        return ptr;
 #else
         return (void **)calloc(sz, sizeof(void*));
 #endif
index 710a20b00b4d61faf50b7ca17d480a171c2637e1..a19364dc5cf3088800b7d36798511cb99a540213 100644 (file)
@@ -251,8 +251,8 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
                     _T("Allow changing the year in the calendar"),
                     TRUE);
     menuCal->AppendSeparator();
-    menuCal->Append(Calendar_Cal_SetDate, "SetDate()", "Set date to 2005-12-24.");
-    menuCal->Append(Calendar_Cal_Today, "Today()", "Set the current date.");
+    menuCal->Append(Calendar_Cal_SetDate, _T("SetDate()"), _T("Set date to 2005-12-24."));
+    menuCal->Append(Calendar_Cal_Today, _T("Today()"), _T("Set the current date."));
 
     // now append the freshly created menu to the menu bar...
     wxMenuBar *menuBar = new wxMenuBar;
index 6ca8f4a29c89f0fe60d2ffcdfb61505da6acf837..4fbef96b2acabe7d64c0a2708379825270fdead3 100644 (file)
@@ -272,8 +272,7 @@ void MyFrame::OnSetFontSize(wxCommandEvent& WXUNUSED(event))
 {
     long fontSize = wxGetNumberFromUser
                     (
-                        _T("The font size also determines the caret size so\n"
-                           "this demonstrates resizing the caret."),
+                        _T("The font size also determines the caret size so\nthis demonstrates resizing the caret."),
                         _T("Font size (in points):"),
                         _T("wxCaret sample"),
                         12, 1, 100,
index 5d36625f14d2048b5b35f96bed8e126f456099fa..5f20469d3ae498b3767230310d992d43d737ffd7 100644 (file)
 #include "wx/wx.h"
 #endif
 
+#ifdef __WXWINCE__
+#include "wx/msw/wince/time.h"
+#endif
+
 #include "wx/colordlg.h"
 #include "wx/filedlg.h"
 #include "wx/dirdlg.h"
index 164642f0f5fae92fb3a5b920123b974ce9afad87..02643c08e5b858f87805e03429db60009fccf2cd 100644 (file)
@@ -250,8 +250,8 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event)
     wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst();
     while ( node )
     {
-        wxWindow *win = node->GetData();
-        if (SendIdleEvents(win, event))
+        wxWindow *child = node->GetData();
+        if (SendIdleEvents(child, event))
             needMore = TRUE;
 
         node = node->GetNext();