Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - LoadDesignerBars() and OnCreateControl()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LoadDesignerBars() and OnCreateControl()

 Post Reply Post Reply
Author
Message
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.077 seconds.