From bf9b73bb837565a0eb5a0a92f4bee2735ffc70fa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 May 2008 00:05:18 +0000 Subject: [PATCH] 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 --- src/msw/calctrl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/msw/calctrl.cpp b/src/msw/calctrl.cpp index 37bd62296f..2f2feb40a4 100644 --- a/src/msw/calctrl.cpp +++ b/src/msw/calctrl.cpp @@ -109,9 +109,8 @@ WXDWORD wxCalendarCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const { WXDWORD styleMSW = wxCalendarCtrlBase::MSWGetStyle(style, exstyle); - // right now we don't support any native styles but we should add wx styles - // corresponding to MCS_NOTODAY, MCS_NOTODAYCIRCLE and MCS_WEEKNUMBERS - // probably (TODO) + // right now we don't support all native styles but we should add wx styles + // corresponding to MCS_NOTODAY and MCS_NOTODAYCIRCLE probably (TODO) // for compatibility with the other versions, just turn off today display // unconditionally for now @@ -120,6 +119,9 @@ WXDWORD wxCalendarCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const // we also need this style for Mark() to work styleMSW |= MCS_DAYSTATE; + if ( style & wxCAL_SHOW_WEEK_NUMBERS ) + styleMSW |= MCS_WEEKNUMBERS; + return styleMSW; } -- 2.45.2