Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Dynamic bar destroy "leak"? Collapse All
Subject Author Date
Rado Manzela May 31, 2010 - 6:39 AM

I’m creating CExtDynamicBarSite::BarAlloc with static desiredCmdId in my sdi frame, which is created on user’s request. It works when frame is created for the first time, but when user closes frame and creates it again, BarAlloc fails, because cmdId is already registered in cmd manager. Isn’t destructor of CExtDynamicControlBar supposed to do g_CmdManager->CmdRemove() for it’s command id?

Technical Support May 31, 2010 - 12:59 PM

The CExtDynamicBarSize class restores all the bars you created. So, you don’t have to create it and dock it initially when your app starts second time.