calendar in splitter view |
Post Reply |
Author | |
lowekt
Newbie Joined: 10 August 2008 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 13 September 2008 at 10:15pm |
Hi,
I'm trying to implement a splitter application with a calendar in the right pane. I am using the calendardemo example as a basis and I am getting an error during OnInitialUpdate for the right view in the following code:
CXTPCalendarControl* COptionsDialogBar::GetCalendarCtrl() { CView* pView = ((CFrameWnd*)AfxGetMainWnd())->GetActiveFrame()->GetActiveView(); ASSERT_KINDOF(CsscdrView, pView); if (pView) return &((CsscdrView*)pView)->GetCalendarCtrl(); else return NULL;} The error seems to occur because the active view is still the LeftView rather than the right view. I'm sure there must be something I'm missing prior to this to change the active view but I'm too new to splitters to figure this out so far. Any help would be great!Thanks,
-Ken
|
|
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 |