Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Disable cancel button using SetWizardButtons

Posted on 1998-03-19
4
Medium Priority
?
491 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 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.

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

660 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