Print Page | Close Window

Propertysheet OK Cancel button!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22497
Printed Date: 25 December 2024 at 11:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Propertysheet OK Cancel button!
Posted By: KumarCJ
Subject: Propertysheet OK Cancel button!
Date Posted: 22 December 2014 at 7:38am
Dear Members,

Is there any way through which we can remove/hide the OK, Cancel button from CXTPPropertySheet?

Tried using below code, but we can see OK, Cancel button on sheet
CXTPPropertySheet ps(_T(One));
ps.RemoveButtons();
ps.AddButton ("Close", IDCLOSE);

Thanks,
Saket Kumar

-------------
-- Saket Kumar



Replies:
Posted By: olebed
Date Posted: 26 December 2014 at 6:13am
Hello Kumar,

What version of toolkitpro  do you use ?    CXTPPropertySheet::AddButton() has other definition
virtual BOOL AddButton(UINT nIDCaption, UINT nID);


To remove  Ok and Cancel buttons you must inherit  CXTPPropertySheet  and redefine CXTPPropertySheet::CreateButtons() method. Use AddButton() only inside CreateButtons() to add all needed buttons. Check what AddButton() returns.

Regards,
 Oleksandr Lebed



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