Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ASSERT Failure on CWnd:DestroyWindow()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASSERT Failure on CWnd:DestroyWindow()

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


Joined: 29 March 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote GWinkler Quote  Post ReplyReply Direct Link To This Post Topic: ASSERT Failure on CWnd:DestroyWindow()
    Posted: 29 March 2004 at 12:33pm

Hi, I'm having some problems creating a pop-able command bar. The popup is correctly shown and commands execute fine. But when the window is about to be destroyed an assertion failure raises.

Function CWnd:DestroyWindow()

ASSERT(m_hWnd == hWndOrig);   wincore.cpp line 986

this is the snapshot of the code I'm using to create it

//CXTPPopupBar* m_PPBar
m_PPBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());

//popup creation
CXTPControlPopup * newPopup = CXTPControlPopup::CreateControlPopup(xtpControlPopup);

   
newPopup->SetCommandBar(ptrPopup->m_PPBar);
   
newPopup->SetCaption(ptrPopup->m_Name);
newPopup->SetStyle(xtpButtonIconAndCaption);
newPopup->SetEnabled(TRUE);
newPopup->SetFlags(xtpFlagManualUpdate);
   
tempCtrls->Add(newPopup,ptrPopup->m_Id,"",index);

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 29 March 2004 at 10:54pm
so you use m_PPBar some times?  try to create it each time need to show popup.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.