+/*
+ Summary of the bits used (some of them are defined in wx/frame.h and
+ wx/dialog.h and not here):
+
+ +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+ |15|14|13|12|11|10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0|
+ +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | | | | | | \_ wxCENTRE
+ | | | | | | | | | | | | | | \____ wxFRAME_NO_TASKBAR
+ | | | | | | | | | | | | | \_______ wxFRAME_TOOL_WINDOW
+ | | | | | | | | | | | | \__________ wxFRAME_FLOAT_ON_PARENT
+ | | | | | | | | | | | \_____________ wxFRAME_SHAPED
+ | | | | | | | | | | \________________ wxDIALOG_NO_PARENT
+ | | | | | | | | | \___________________ wxRESIZE_BORDER
+ | | | | | | | | \______________________ wxTINY_CAPTION_VERT
+ | | | | | | | \_________________________
+ | | | | | | \____________________________ wxMAXIMIZE_BOX
+ | | | | | \_______________________________ wxMINIMIZE_BOX
+ | | | | \__________________________________ wxSYSTEM_MENU
+ | | | \_____________________________________ wxCLOSE_BOX
+ | | \________________________________________ wxMAXIMIZE
+ | \___________________________________________ wxMINIMIZE
+ \______________________________________________ wxSTAY_ON_TOP
+
+
+ Notice that the 8 lower bits overlap with wxCENTRE and the button selection
+ bits (wxYES, wxOK wxNO, wxCANCEL, wxAPPLY, wxCLOSE and wxNO_DEFAULT) which
+ can be combined with the dialog style for several standard dialogs and
+ hence shouldn't overlap with any styles which can be used for the dialogs.
+ Additionally, wxCENTRE can be used with frames also.
+ */
+
+// style common to both wxFrame and wxDialog
+#define wxSTAY_ON_TOP 0x8000
+#define wxICONIZE 0x4000
+#define wxMINIMIZE wxICONIZE
+#define wxMAXIMIZE 0x2000
+#define wxCLOSE_BOX 0x1000 // == wxHELP so can't be used with it
+
+#define wxSYSTEM_MENU 0x0800
+#define wxMINIMIZE_BOX 0x0400
+#define wxMAXIMIZE_BOX 0x0200
+
+#define wxTINY_CAPTION 0x0080 // clashes with wxNO_DEFAULT
+#define wxRESIZE_BORDER 0x0040 // == wxCLOSE
+
+#if WXWIN_COMPATIBILITY_2_8
+ // HORIZ and VERT styles are equivalent anyhow so don't use different names
+ // for them
+ #define wxTINY_CAPTION_HORIZ wxTINY_CAPTION
+ #define wxTINY_CAPTION_VERT wxTINY_CAPTION
+#endif
+
+#if WXWIN_COMPATIBILITY_2_6
+
+ // deprecated versions defined for compatibility reasons
+ #define wxRESIZE_BOX wxMAXIMIZE_BOX
+ #define wxTHICK_FRAME wxRESIZE_BORDER
+
+ // obsolete styles, unused any more
+ #define wxDIALOG_MODAL 0
+ #define wxDIALOG_MODELESS 0
+ #define wxNO_3D 0
+ #define wxUSER_COLOURS 0
+
+#endif // WXWIN_COMPATIBILITY_2_6
+
+// default style
+//
+// under Windows CE (at least when compiling with eVC 4) we should create
+// top level windows without any styles at all for them to appear
+// "correctly", i.e. as full screen windows with a "hide" button (same as
+// "close" but round instead of squared and just hides the applications
+// instead of closing it) in the title bar
+#if defined(__WXWINCE__)
+ #if defined(__SMARTPHONE__)
+ #define wxDEFAULT_FRAME_STYLE (wxMAXIMIZE)
+ #elif defined(__WINCE_STANDARDSDK__)
+ #define wxDEFAULT_FRAME_STYLE (wxMAXIMIZE|wxCLOSE_BOX)
+ #else
+ #define wxDEFAULT_FRAME_STYLE (wxNO_BORDER)
+ #endif
+#else // !__WXWINCE__
+ #define wxDEFAULT_FRAME_STYLE \
+ (wxSYSTEM_MENU | \
+ wxRESIZE_BORDER | \
+ wxMINIMIZE_BOX | \
+ wxMAXIMIZE_BOX | \
+ wxCLOSE_BOX | \
+ wxCAPTION | \
+ wxCLIP_CHILDREN)
+#endif
+
+