![]()  | 
 
Propertysheet OK Cancel button! | 
 
    Post Reply  
   | 
  
| Author | |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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
     
   
   | 
 |
![]()  | 
 |
   
   olebed  
   
   Senior Member  
   Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 December 2014 at 6:13am | 
 
| 
   
    
   
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  |