Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Custom controls on toolbar in dialog?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom controls on toolbar in dialog?

 Post Reply Post Reply
Author
Message Reverse Sort Order
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post Topic: Custom controls on toolbar in dialog?
    Posted: 14 August 2005 at 12:16am
Thanks for the help.  I managed to get it working with GetControls()->Add().  I appreciate the time you spend answering questions in the forums.

--Craig

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: 12 August 2005 at 2:41pm

Actually, same message will be sent to dialog...

But you can use CXTPControls class instead:

m_wndToolBar.GetControls()->Add(new CXTPControlCustom()....);

for next release, we made a lot of enhancements of CXTPDialog to allow docking/customization.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2005 at 2:10am
A quick followup.  In a dialog based on CXTPDialog, what is the equivilent funtion to

int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)

which I think I need to create the controls.  It is described in the common controls example as:

// This function is called by the Extreme Tool Kit application framework.
// This function handles the creation of the controls that are placed
// on the CommandBars.  The LPCREATECONTROLSTRUCT structure contains information
 // about the control to create.

Thanks,
Craig

Back to Top
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post Posted: 11 August 2005 at 4:51pm
I have a CXTPToolbar inside of a CXTPDialog that I would like to add custom controls to (Font list dropdown, font size dropdown, etc).  Is there a sample or documentation  availale on how to do this?

I've been searching the forum and the online docs for a couple of hours now with no luck.  Any help would be really appreciated. 

Thanks,
Craig


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.094 seconds.