Quit item = wxID_EXIT in case we use standard ids in resources

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
This commit is contained in:
Julian Smart 2003-07-20 22:58:05 +00:00
parent beb471b5e9
commit 1896f99ca4
2 changed files with 2 additions and 5 deletions

View 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

View File

@ -1,6 +1,3 @@
mondrian ICON "mondrian.ico"
#include "wx/msw/wx.rc"
#define MINIMAL_QUIT 1
#define MINIMAL_ABOUT 102