added wxCLOSE and unified wxDEFAULT_DIALOG_STYLE definition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -976,7 +976,8 @@ enum wxBorder
|
|||||||
#define wxICONIZE 0x4000
|
#define wxICONIZE 0x4000
|
||||||
#define wxMINIMIZE wxICONIZE
|
#define wxMINIMIZE wxICONIZE
|
||||||
#define wxMAXIMIZE 0x2000
|
#define wxMAXIMIZE 0x2000
|
||||||
// free flag value: 0x1000
|
#define wxCLOSE 0x1000
|
||||||
|
|
||||||
#define wxSYSTEM_MENU 0x0800
|
#define wxSYSTEM_MENU 0x0800
|
||||||
#define wxMINIMIZE_BOX 0x0400
|
#define wxMINIMIZE_BOX 0x0400
|
||||||
#define wxMAXIMIZE_BOX 0x0200
|
#define wxMAXIMIZE_BOX 0x0200
|
||||||
@@ -1010,16 +1011,10 @@ enum wxBorder
|
|||||||
|
|
||||||
#define wxDEFAULT_FRAME_STYLE \
|
#define wxDEFAULT_FRAME_STYLE \
|
||||||
(wxSYSTEM_MENU | wxRESIZE_BORDER | \
|
(wxSYSTEM_MENU | wxRESIZE_BORDER | \
|
||||||
wxMINIMIZE_BOX | wxMAXIMIZE_BOX | \
|
wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxCLOSE | \
|
||||||
wxCAPTION | wxCLIP_CHILDREN)
|
wxCAPTION | wxCLIP_CHILDREN)
|
||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMGL__)
|
#define wxDEFAULT_DIALOG_STYLE (wxSYSTEM_MENU | wxCAPTION | wxCLOSE)
|
||||||
# define wxDEFAULT_DIALOG_STYLE (wxSYSTEM_MENU | wxCAPTION)
|
|
||||||
#else
|
|
||||||
// Under Unix, the dialogs don't have a system menu. Specifying wxSYSTEM_MENU
|
|
||||||
// here will make a close button appear.
|
|
||||||
# define wxDEFAULT_DIALOG_STYLE wxCAPTION
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* wxExtDialog style flags
|
* wxExtDialog style flags
|
||||||
|
Reference in New Issue
Block a user