Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - No command bar when calling Add
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No command bar when calling Add

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: No command bar when calling Add
    Posted: 13 October 2009 at 9:18am
I have subclassed the CXTPControlPopup so I can persist some extra data when the QAT saves such a control. After allocating my popup, I call CXTPGroup::Add( pPopup, ...) - the overload where one passes the control in instead of the control type.
 
But I found that unlike calling Add( xtpControlPopup, ...), the CJ code does not allocate and set the command bar pointer for the popup.
 
Why not?
 
I am having to copy code from the CJ source to do this myself. Dangerous since if CJ ever changes, I have to react. Seems like a simple call to get the runtime class and populate the instance data when calling Add( pControl, ...).
 
Please add such code to a future release. In the meantime I'll add a check for the bar and only allocate if it is NULL.
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.203 seconds.