Print Page | Close Window

Constructor of CXTPPopupBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9810
Printed Date: 01 March 2025 at 8:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Constructor of CXTPPopupBar
Posted By: Michl
Subject: Constructor of CXTPPopupBar
Date 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()



Replies:
Posted By: Oleg
Date 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


Posted By: Michl
Date 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


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net