X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f6aed9c6a21d4bc732579aa564adf4cdb2c9aab..846e1424e2f563b699e7fcb81d10cf6f2246487f:/include/wx/calctrl.h diff --git a/include/wx/calctrl.h b/include/wx/calctrl.h index 94e7e2002c..59e3e68027 100644 --- a/include/wx/calctrl.h +++ b/include/wx/calctrl.h @@ -47,6 +47,14 @@ enum wxCalendarDateBorder class WXDLLEXPORT wxCalendarDateAttr { +protected: + // This has to be before the use of Init(), for MSVC++ 1.5 + void Init(wxCalendarDateBorder border = wxCAL_BORDER_NONE) + { + m_border = border; + m_holiday = FALSE; + } + public: // ctors wxCalendarDateAttr() { Init(); } @@ -90,13 +98,6 @@ public: const wxFont& GetFont() const { return m_font; } wxCalendarDateBorder GetBorder() const { return m_border; } -protected: - void Init(wxCalendarDateBorder border = wxCAL_BORDER_NONE) - { - m_border = border; - m_holiday = FALSE; - } - private: wxColour m_colText, m_colBack,