add wxCAL_SHOW_WEEK_NUMBERS support (patch 1960860)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,9 +109,8 @@ WXDWORD wxCalendarCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
|
|||||||
{
|
{
|
||||||
WXDWORD styleMSW = wxCalendarCtrlBase::MSWGetStyle(style, exstyle);
|
WXDWORD styleMSW = wxCalendarCtrlBase::MSWGetStyle(style, exstyle);
|
||||||
|
|
||||||
// right now we don't support any native styles but we should add wx styles
|
// right now we don't support all native styles but we should add wx styles
|
||||||
// corresponding to MCS_NOTODAY, MCS_NOTODAYCIRCLE and MCS_WEEKNUMBERS
|
// corresponding to MCS_NOTODAY and MCS_NOTODAYCIRCLE probably (TODO)
|
||||||
// probably (TODO)
|
|
||||||
|
|
||||||
// for compatibility with the other versions, just turn off today display
|
// for compatibility with the other versions, just turn off today display
|
||||||
// unconditionally for now
|
// unconditionally for now
|
||||||
@@ -120,6 +119,9 @@ WXDWORD wxCalendarCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
|
|||||||
// we also need this style for Mark() to work
|
// we also need this style for Mark() to work
|
||||||
styleMSW |= MCS_DAYSTATE;
|
styleMSW |= MCS_DAYSTATE;
|
||||||
|
|
||||||
|
if ( style & wxCAL_SHOW_WEEK_NUMBERS )
|
||||||
|
styleMSW |= MCS_WEEKNUMBERS;
|
||||||
|
|
||||||
return styleMSW;
|
return styleMSW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user