X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f3f9b50aa275243ade3541ecccb95de22cf57a9..198be845897a79ba350ae7f93db536ddb2eccfb2:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 99bb37b398..d145e5f1d9 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1286,11 +1286,6 @@ void wxWindowMSW::MSWUpdateStyle(long flagsOld, long exflagsOld) } } -wxBorder wxWindowMSW::GetDefaultBorder() const -{ - return GetDefaultBorderForControl(); -} - wxBorder wxWindowMSW::GetDefaultBorderForControl() const { // we want to automatically give controls a sunken style (confusingly, @@ -1312,6 +1307,11 @@ wxBorder wxWindowMSW::GetDefaultBorderForControl() const #endif } +wxBorder wxWindowMSW::GetDefaultBorder() const +{ + return GetDefaultBorderForControl(); +} + WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const { // translate common wxWidgets styles to Windows ones @@ -1383,9 +1383,9 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const wxFAIL_MSG( _T("unknown border style") ); break; -// case wxBORDER_DOUBLE: -// *exstyle |= WS_EX_DLGMODALFRAME; -// break; + case wxBORDER_DOUBLE: + *exstyle |= WS_EX_DLGMODALFRAME; + break; } // wxUniv doesn't use Windows dialog navigation functions at all @@ -5417,7 +5417,7 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel), // menu creation code wxMenuItem *item = (wxMenuItem*)mii.dwItemData; - const wxChar *p = wxStrchr(item->GetText().wx_str(), _T('&')); + const wxChar *p = wxStrchr(item->GetItemLabel().wx_str(), _T('&')); while ( p++ ) { if ( *p == _T('&') )