Print Page | Close Window

AddButton to CXTPPropertySheet

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=16098
Printed Date: 09 June 2024 at 7:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AddButton to CXTPPropertySheet
Posted By: Tello74
Subject: AddButton to CXTPPropertySheet
Date 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!!!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net