]> git.saurik.com Git - wxWidgets.git/commitdiff
Quit item = wxID_EXIT in case we use standard ids in resources
authorJulian Smart <julian@anthemion.co.uk>
Sun, 20 Jul 2003 22:58:05 +0000 (22:58 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 20 Jul 2003 22:58:05 +0000 (22:58 +0000)
Minimal sample frame style suits Smartphone and Pocket PC now

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

samples/minimal/minimal.cpp
samples/minimal/minimal.rc

index 21de2655b9a3aa55082d6a00eec327bdad46f5e9..bfdab39f85b4bba0336d1cd355819b8ade31c1a8 100644 (file)
@@ -81,7 +81,7 @@ private:
 enum
 {
     // menu items
-    Minimal_Quit = 1,
+    Minimal_Quit = wxID_EXIT,
 
     // it is important for the id corresponding to the "About" command to have
     // this standard value as otherwise it won't be handled properly under Mac
@@ -122,7 +122,7 @@ bool MyApp::OnInit()
     // create the main application window
     MyFrame *frame = new MyFrame(_T("Minimal wxWindows App"),
 #ifdef __WXWINCE__
-        wxPoint(0, 0), wxDefaultSize, wxNO_BORDER|wxSYSTEM_MENU);
+        wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxSYSTEM_MENU|wxCLIP_CHILDREN);
 #else
         wxPoint(50, 50), wxSize(450, 340));
 #endif
index 3bf71d6da09b4d83a72cbcfe0af26afe57e3becc..7655c62a4c3f71bc6ddb1499a59ec06d57cf29e2 100644 (file)
@@ -1,6 +1,3 @@
 mondrian ICON "mondrian.ico"
 #include "wx/msw/wx.rc"
 
-#define MINIMAL_QUIT   1
-#define MINIMAL_ABOUT  102
-