![]() |
LoadDesignerBars() and OnCreateControl() |
Post Reply
|
| Author | |
Smucker
Senior Member
Joined: 02 February 2008 Status: Offline Points: 156 |
Post Options
Thanks(0)
Quote Reply
Topic: LoadDesignerBars() and OnCreateControl()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) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Smucker
Senior Member
Joined: 02 February 2008 Status: Offline Points: 156 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
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 |