Go Premium for a chance to win a PS4. Enter to Win


Disable cancel button using SetWizardButtons

Posted on 1998-03-19
Medium Priority
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?  
Question by:lousy
  • 3

Accepted Solution

jtwine100697 earned 600 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.


Expert Comment

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.

Author Comment

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!

Expert Comment

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.

Featured Post

Technology Partners: 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

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. …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.
Suggested Courses

877 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