![]() |
Constructor of CXTPPopupBar |
Post Reply ![]() |
Author | |
Michl ![]() Senior Member ![]() Joined: 14 September 2007 Status: Offline Points: 138 |
![]() ![]() ![]() ![]() ![]() 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()
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |