Solved

How to add buttons into property sheet ??

Posted on 2001-08-21
4
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

735 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