Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Add page in customize dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add page in customize dialog

 Post Reply Post Reply
Author
Message
yoavo View Drop Down
Senior Member
Senior Member


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: Add page in customize dialog
    Posted: 30 August 2004 at 9:44am

Hi,

I need to add a page to the customize dialog. I did the following:

1. Add a new dialog resource to my application (with id = IDD_MY_PROP_PAGE)

2. Create a new class CMyPropPage which derives from CPropertyPage and from CXTPDialogState (and have enum IDD = IDD_MY_PROP_PAGE).

3. in OnCustomize of the MainFrame I added:

    CMyPropPage mypage(&cs);

    cs.AddPage(&mypage);

I get an Abort in CPropertyPage::PreProcessPageTemplate. in LockResource method I get pTemplate = NULL.

Can someone please help ?

Yoav.

 

 

 

Hi,

I need to add a page to the tab control of the custom

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: 05 September 2004 at 2:39am

Remove CXTPDialogState. it is for internal use only.

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