Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - AddButton to CXTPPropertySheet
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AddButton to CXTPPropertySheet

 Post Reply Post Reply
Author
Message Reverse Sort Order
Tello74 View Drop Down
Newbie
Newbie


Joined: 10 June 2009
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tello74 Quote  Post ReplyReply Direct Link To This Post Topic: AddButton to CXTPPropertySheet
    Posted: 28 January 2010 at 12:35pm
Hi,
 
MyPropertySheet extends CXTPPropertySheet.
Into the OnInitDialog I wrote the following code:
 
// Setting property sheet buttons
RemoveButtons();
AddButton(IDS_SETTINGS_BUTTON1, ID_ONE_BUTTON);
AddButton(IDS_SETTINGS_BUTTON2, ID_TWO_BUTTON);

The standard property sheet buttons (OK, CANCEL, APPLY, HELP) disappear BUT my new ones don't appear. They only appear if I drag the prop sheet corner causing a property sheet repaint. In addition I can't find a command (Invalidate, InvalidateRect have no success) to force the prop sheet repaint. Something is wrong in my code? Is there a command showing the added buttons?

Thank you!!!
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.092 seconds.