![]() |
Assertion in MFC CView by useing CXTTabCtrl |
Post Reply
|
| Author | |
decembler
Groupie
Joined: 09 March 2006 Location: Germany Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: Assertion in MFC CView by useing CXTTabCtrlPosted: 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...
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
decembler
Groupie
Joined: 09 March 2006 Location: Germany Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 July 2007 at 6:03am |
|
It works, thanks a lot...
|
|
![]() |
|
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 |