• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Enabling a button

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
lar_jens
Asked:
lar_jens
1 Solution
 
MDarlingCommented:
GetDlgItem(IDC_BUTTON)->EnableWindow(TRUE);

or if you have a var mapped

m_button.EnableWindow(TRUE);

regards,
Mike.
0
 
lar_jensAuthor Commented:
Thank you..
Nice to know that there are several ways to do something.. =)

0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now