![]() |
Constructor of CXTPPopupBar |
Post Reply
|
| Author | |
Michl
Senior Member
Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Quote Reply
Topic: Constructor of CXTPPopupBarPosted: 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()
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Michl
Senior Member
Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |