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:
@@ -81,7 +81,7 @@ private:
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
// menu items
|
// menu items
|
||||||
Minimal_Quit = 1,
|
Minimal_Quit = wxID_EXIT,
|
||||||
|
|
||||||
// it is important for the id corresponding to the "About" command to have
|
// 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
|
// 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
|
// create the main application window
|
||||||
MyFrame *frame = new MyFrame(_T("Minimal wxWindows App"),
|
MyFrame *frame = new MyFrame(_T("Minimal wxWindows App"),
|
||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
wxPoint(0, 0), wxDefaultSize, wxNO_BORDER|wxSYSTEM_MENU);
|
wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxSYSTEM_MENU|wxCLIP_CHILDREN);
|
||||||
#else
|
#else
|
||||||
wxPoint(50, 50), wxSize(450, 340));
|
wxPoint(50, 50), wxSize(450, 340));
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
mondrian ICON "mondrian.ico"
|
mondrian ICON "mondrian.ico"
|
||||||
#include "wx/msw/wx.rc"
|
#include "wx/msw/wx.rc"
|
||||||
|
|
||||||
#define MINIMAL_QUIT 1
|
|
||||||
#define MINIMAL_ABOUT 102
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user