Propertysheet OK Cancel button! |
Post Reply |
Author | |
KumarCJ
Groupie Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
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
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Kumar,
What version of toolkitpro do you use ? CXTPPropertySheet::AddButton() has other definition
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |