Print Page | Close Window

TabControl in ATL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2310
Printed Date: 08 November 2025 at 6:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl in ATL
Posted By: Jose Vicente
Subject: TabControl in ATL
Date Posted: 02 June 2005 at 3:09am
Hello.

I'm trying to create a tab control dynamically in a ATL project thas has MFC support.

My code to create the control is the following

m_TabCtrl.Create ( WS_CHILD, rc, CWnd::FromHandle ( m_hWnd),  IDC_TAB );

Althought the tab control is created, the following assert appears:

ASSERT((p = pMap->LookupPermanent(m_hWnd)) != NULL ||
            (p = pMap->LookupTemporary(m_hWnd)) != NULL);

How can I do to avoid this assert ??
Thanks in advance.

Best Regards.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net