Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - TabControl in ATL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl in ATL

 Post Reply Post Reply
Author
Message
Jose Vicente View Drop Down
Newbie
Newbie


Joined: 02 June 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jose Vicente Quote  Post ReplyReply Direct Link To This Post Topic: TabControl in ATL
    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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.078 seconds.