wxDefaultPosition,
wxDefaultSize,
0, NULL,
- wxCB_READONLY)
+ wxCB_READONLY | wxCLIP_SIBLINGS)
{
m_cal = cal;
cal->GetDate().Format(_T("%Y")),
wxDefaultPosition,
wxDefaultSize,
- wxSP_ARROW_KEYS,
+ wxSP_ARROW_KEYS | wxCLIP_SIBLINGS,
-4300, 10000, cal->GetDate().GetYear())
{
m_cal = cal;
m_attrs[n] = NULL;
}
- wxSystemSettings ss;
- m_colHighlightFg = ss.GetSystemColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
- m_colHighlightBg = ss.GetSystemColour(wxSYS_COLOUR_HIGHLIGHT);
+ m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
+ m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
m_colHolidayFg = *wxRED;
// don't set m_colHolidayBg - by default, same as our bg colour
const wxString& name)
{
if ( !wxControl::Create(parent, id, pos, size,
- style | wxWANTS_CHARS, wxDefaultValidator, name) )
+ style | wxCLIP_CHILDREN | wxWANTS_CHARS,
+ wxDefaultValidator, name) )
{
return FALSE;
}
// Get extent of month-name + year
wxCoord monthw, monthh;
- wxString headertext = m_date.Format("%B %Y");
+ wxString headertext = m_date.Format(wxT("%B %Y"));
dc.GetTextExtent(headertext, &monthw, &monthh);
// draw month-name centered above weekdays