fixed redraw problems on resize under MSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-12-02 16:18:37 +00:00
parent 5f3286d17d
commit fdda2df62d

View File

@ -121,7 +121,7 @@ wxMonthComboBox::wxMonthComboBox(wxCalendarCtrl *cal)
wxDefaultPosition,
wxDefaultSize,
0, NULL,
wxCB_READONLY)
wxCB_READONLY | wxCLIP_SIBLINGS)
{
m_cal = cal;
@ -140,7 +140,7 @@ wxYearSpinCtrl::wxYearSpinCtrl(wxCalendarCtrl *cal)
cal->GetDate().Format(_T("%Y")),
wxDefaultPosition,
wxDefaultSize,
wxSP_ARROW_KEYS,
wxSP_ARROW_KEYS | wxCLIP_SIBLINGS,
-4300, 10000, cal->GetDate().GetYear())
{
m_cal = cal;
@ -189,7 +189,8 @@ bool wxCalendarCtrl::Create(wxWindow *parent,
const wxString& name)
{
if ( !wxControl::Create(parent, id, pos, size,
style | wxWANTS_CHARS, wxDefaultValidator, name) )
style | wxCLIP_CHILDREN | wxWANTS_CHARS,
wxDefaultValidator, name) )
{
return FALSE;
}