Solved

How to add buttons into property sheet ??

Posted on 2001-08-21
4
266 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

743 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