Solved

How to add buttons into property sheet ??

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Arduino EDI - Programming language 3 91
Header of docx file 17 102
gdb doesn't stop on breakpoint 2 67
How to Correctly derive class from CWinThread in MFC 4 35
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
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.

808 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