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
Solved

How to add buttons into property sheet ??

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

840 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