Solved

Disable cancel button using SetWizardButtons

Posted on 1998-03-19
4
481 Views
Last Modified: 2008-02-01
In the doc, the params PSWIZB_BACK, NEXT, FINISH,  and DISABLEDFINISH are the only choices.  My wizard page displays a Back, Finish and Cancel button using the CPropertySheet.  How do i disable/gray out the cancel button?  Is there a param for that?  
0
Comment
Question by:lousy
[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
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
jtwine100697 earned 200 total points
ID: 1183654
  Try This:

    CWnd    *pWnd = GetDlgItem( IDCANCEL );   // Get [Cancel]

    if( pWnd )                                // If We Got The Button
        pWnd -> EnableWindow( FALSE );        // Disable It

-=- James.

0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1183655
  BTW: Some of the "experts" here will not answer questions that "don't have enough points".  Bear that in mind, you might get an answer sooner! :P

-=- James.
0
 

Author Comment

by:lousy
ID: 1183656
Thanks!  I will try it out and let you know.  I appreciate the tip.  I just joined and do not know that the points are for experts to answer the question.  I thought the points is related to the degree of difficulty.  Have a great day!
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1183657
  First, you should not have accepted my answer without first trying it out! :P  But thanx for adding points to it before accepting the answer.

   Points do relate to the degree of difficulty, but questions that have a zero point value (as your did) might sit around for a bit.

   Please try my idea out, and post your results, so I can know that everything is working for you.

-=- James.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

617 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