Solved

How to add buttons into property sheet ??

Posted on 2001-08-21
4
267 Views
Last Modified: 2012-08-13
when property sheet has been created, there will  automatically provide 3 buttons --> OK, Cancel and also Apply .....i would like to add more buttons in my page and also remove the Apply and Cancel button .... what should i do ??
0
Comment
Question by:zoesam
4 Comments
 
LVL 4

Accepted Solution

by:
jtwine100697 earned 50 total points
ID: 6412293
The PSH_NOAPPLYNOW style for the PROPSHEETHEADER structure of the Property Sheet will remove [Apply] for you.  

For [Cancel], I would suggest obtaning the handle to the button and using EnableWindow( hWnd, FALSE ) & ShowWindow( hWnd, SW_HIDE ) to disable and hide the button.

Buttons can be created and placed on the Property Sheet when it is constructed.  Just create the buttons, and, using the existing buttons as a guide, place them on the sheet.

-=- James.
0
 
LVL 3

Expert Comment

by:jcgd
ID: 6431135
Create a CPropertySheet class and override the "OnCreate" function. In this function , after call the base class CPropertySheet::OnCreate you can add additional controls.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6861825
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "jtwine" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6884028
Per recommendation, force-accepted by
Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now