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

Menu and dialogs

 Post Reply Post Reply
Author
Message
irekz View Drop Down
Newbie
Newbie


Joined: 15 June 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote irekz Quote  Post ReplyReply Direct Link To This Post Topic: Menu and dialogs
    Posted: 16 June 2007 at 2:25pm
Hi.
Most of my applications are CDialog and CPropertySheet based.
I find it difficult to integrate those with Xtreme toolkit.

Question no1: what's the bare minimum to add a menu to CDialog based application? Can you put it into a small list?

I was looking at DialogSample and still can't figure out if I need to copy and paste to my app most of this code (like RepositionControls function).

Question no2: I understand that to taqke advantage of toolkit features I need to change base class for my dialogs (like CDialog to CXTPDialogBase<CXTResizeDialog>) - what about CPropertySheet based dialogs?

Thanks for your time and help!
Irek

ps. toolkit looks great but I guess you miss some sales on ground that there is not enough tutorials. Sample applications are helpful but there is not enough comments in code so it's hard to guess what's essential and what's not.

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: 18 June 2007 at 1:44am
if Your dialog not support resizing, you only need override class from CXTPDialog and
call in OnInitialUpdate handler.
 
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
in CPropertySheet  you also need RepositionBars call , but have manually move all pages.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.