From: Vadim Zeitlin Date: Thu, 11 Sep 2008 23:41:49 +0000 (+0000) Subject: added wxCANCEL_DEFAULT style to wxMessageDialog (only implemented for MSW for now... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/72513c369e27dcfe53d8427090e4d12589c989ae added wxCANCEL_DEFAULT style to wxMessageDialog (only implemented for MSW for now); also tightened up the style checks in wxMessageDialog::SetMessageDialogStyle() (argh, another forgotten file, should have been part of r55561) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index d9aad8ce61..21a17fc077 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1866,8 +1866,10 @@ enum wxBorder #define wxAPPLY 0x00000020 #define wxCLOSE 0x00000040 -#define wxYES_DEFAULT 0x00000000 /* has no effect (default) */ -#define wxNO_DEFAULT 0x00000080 +#define wxOK_DEFAULT 0x00000000 /* has no effect (default) */ +#define wxYES_DEFAULT 0x00000000 /* has no effect (default) */ +#define wxNO_DEFAULT 0x00000080 /* only valid with wxYES_NO */ +#define wxCANCEL_DEFAULT 0x80000000 /* only valid with wxCANCEL */ #define wxICON_EXCLAMATION 0x00000100 #define wxICON_HAND 0x00000200