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