Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Propertysheet OK Cancel button!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Propertysheet OK Cancel button!

 Post Reply Post Reply
Author
Message
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Topic: Propertysheet OK Cancel button!
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.