Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Constructor of CXTPPopupBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Constructor of CXTPPopupBar

 Post Reply Post Reply
Author
Message
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: Constructor of CXTPPopupBar
    Posted: 06 March 2008 at 10:52am
Why is the standard constructor protected? Has it any reason?
 
It is possible to create an dynamic instance with CXTPPopupBar::CreatePopupBar. But it is more slowly and it is possible to forget a call to pPopup->InternalRelease()
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: 07 March 2008 at 3:23pm
Hi,
Its protected to force you call CreatePopupBar instead. Its not slowly at all.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2008 at 5:42am
Of course.
 
But e.g. the subclass CXTPPopupToolBar can be also create as static. But why it is not allowed to create CXTPPopupBar as static?
 
(Just for understand it)
Thanks
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: 11 March 2008 at 6:43am
Hi,
 
There is CXTPCommandBars::SetPopupBarClass method to allow set custom PopupBar class.
 
using CXTPPopupBar::CreatePopupBar you will be sure it will create popup bar you set as custom.
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.049 seconds.