Print Page | Close Window

LoadDesignerBars() and OnCreateControl()

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=11525
Printed Date: 01 March 2025 at 1:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadDesignerBars() and OnCreateControl()
Posted By: Smucker
Subject: LoadDesignerBars() and OnCreateControl()
Date Posted: 21 July 2008 at 10:05pm
When loading designer bars from an XCB file in resources, I don't get any calls to OnCreateControl(). I do get them for a toolbar.

I'm trying to implement dynamic pop-ups as in the DynamicPopups example, but on command bars built using Designer.

Any ideas what I'm doing wrong, or suggestions for a better way?



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)




Replies:
Posted By: Oleg
Date Posted: 22 July 2008 at 1:54am
Hi,
 
Yes, OnCreateControl will not called - controls already created.
 
You can find control and replace with control you need
 
pCommandBars->FindControl(..);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Smucker
Date Posted: 22 July 2008 at 4:22am
Ok thanks, doing that now and it works. I wish there were more consistency.



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)




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