Solved

Disable cancel button using SetWizardButtons

Posted on 1998-03-19
4
465 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
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
jtwine100697 earned 200 total points
Comment Utility
  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
Comment Utility
  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
Comment Utility
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
Comment Utility
  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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

728 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

9 Experts available now in Live!

Get 1:1 Help Now