Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - calendar in splitter view
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedcalendar in splitter view

 Post Reply Post Reply
Author
Message
lowekt View Drop Down
Newbie
Newbie


Joined: 10 August 2008
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lowekt Quote  Post ReplyReply Direct Link To This Post Topic: calendar in splitter view
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.160 seconds.