![]() |
Demo - Week View ToolBar bug |
Post Reply ![]() |
Author | |
Algae ![]() Senior Member ![]() ![]() Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
![]() ![]() ![]() ![]() ![]() Posted: 08 September 2009 at 5:34pm |
v. 13.1
Not a big deal, but might help folks starting out with the toolkit. Existing code does not highlight the "7" toolbar button properly when using the "FullWeekView" (i.e. MultiColumn week mode). void CCalendarDemoView::OnUpdateCalendarViewWeek(CCmdUI* pCmdUI) { BOOL bViewWeek = FALSE; CXTPCalendarView* pView = GetCalendarCtrl().GetActiveView(); if (pView && pView->GetViewType() == xtpCalendarWeekView) bViewWeek = TRUE; pCmdUI->SetCheck(bViewWeek); } Fix: void CCalendarDemoView::OnUpdateCalendarViewWeek(CCmdUI* pCmdUI) { BOOL bViewWeek = FALSE; CXTPCalendarView* pView = GetCalendarCtrl().GetActiveView(); if (pView && pView->GetViewType() == xtpCalendarWeekView || pView->GetViewType() == xtpCalendarFullWeekView ) bViewWeek = TRUE; pCmdUI->SetCheck(bViewWeek); } |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
You right - but this is only Demo source bug - not Core code
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |