Solved

Enabling a button

Posted on 2000-02-17
2
223 Views
Last Modified: 2013-11-20
I have a dialog with a button in my recources. The button is initially disabled..

How do I enable the button from my code? Is there a way I can point to a CButton object here, or what do I do??

0
Comment
Question by:lar_jens
2 Comments
 
LVL 3

Accepted Solution

by:
MDarling earned 50 total points
ID: 2531561
GetDlgItem(IDC_BUTTON)->EnableWindow(TRUE);

or if you have a var mapped

m_button.EnableWindow(TRUE);

regards,
Mike.
0
 
LVL 1

Author Comment

by:lar_jens
ID: 2531744
Thank you..
Nice to know that there are several ways to do something.. =)

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 125
only14 challenge 19 76
mapAB Challlenge 35 144
Increment column based of a FK 8 21
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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