Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Assertion in MFC CView by useing CXTTabCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assertion in MFC CView by useing CXTTabCtrl

 Post Reply Post Reply
Author
Message
decembler View Drop Down
Groupie
Groupie
Avatar

Joined: 09 March 2006
Location: Germany
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote decembler Quote  Post ReplyReply Direct Link To This Post Topic: Assertion in MFC CView by useing CXTTabCtrl
    Posted: 02 July 2007 at 5:12am
Hello together,
 
I use the CXTTabCtrl in a CXTResizeDlg and add two CFormViews.
 
m_tab.AddView(thisApp.GetResString(IDS_ADMIN_USER), RUNTIME_CLASS(CAdminUserView));
m_tab.AddView(thisApp.GetResString(IDS_ADMIN_CONS), RUNTIME_CLASS(CAdminConsView));
 
When I call DoModal() I see all the Controls inside of the views, but
if I press any Button or select a listitem I get an assertion inside the
MFC-CView Class (OnMouseActivate) line 254:
 
ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame));
 
Is there anyone who can help me? Thanks...
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2007 at 5:37am
Hi,
 
MFC assumes that parent window of CView is CFrameWnd....
you can catch ON_WM_MOUSEACTIVATE() in your  CAdminUserView/CAdminConsView
and call CWnd base method instead CView.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
decembler View Drop Down
Groupie
Groupie
Avatar

Joined: 09 March 2006
Location: Germany
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote decembler Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2007 at 6:03am
It works, thanks a lot...
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.031 seconds.