X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff8fda36178e5d44b402757dcdc5a2bb54e52b7d..a9249b2eb2a40d8c71f828669045c4ddaa8dc5ff:/src/common/wincmn.cpp?ds=inline diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 26df7cc81f..5b677218c7 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -134,6 +134,11 @@ void wxWindowBase::InitBase() m_font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT); #endif // __WXMSW__ + // the colours/fonts are default for now + m_hasBgCol = + m_hasFgCol = + m_hasFont = FALSE; + // no style bits m_exStyle = m_windowStyle = 0; @@ -637,6 +642,8 @@ bool wxWindowBase::SetBackgroundColour( const wxColour &colour ) m_backgroundColour = colour; + m_hasBgCol = TRUE; + return TRUE; } @@ -647,6 +654,8 @@ bool wxWindowBase::SetForegroundColour( const wxColour &colour ) m_foregroundColour = colour; + m_hasFgCol = TRUE; + return TRUE; } @@ -678,6 +687,8 @@ bool wxWindowBase::SetFont(const wxFont& font) m_font = fontOk; + m_hasFont = TRUE; + return TRUE; } @@ -1527,14 +1538,19 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event ) wxMessageBox(wxString::Format( _T( - " wxWindows Library (%s port)\nVersion %u.%u.%u, compiled at %s %s\n Copyright (c) 1995-2001 wxWindows team" + " wxWindows Library (%s port)\nVersion %u.%u.%u%s, compiled at %s %s\n Copyright (c) 1995-2001 wxWindows team" ), port.c_str(), wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER, - __DATE__, - __TIME__ +#if wxUSE_UNICODE + L" (Unicode)", +#else + "", +#endif + __TDATE__, + __TTIME__ ), _T("wxWindows information"), wxICON_INFORMATION | wxOK,