Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DisKordCoder

A Simple MFC Question

This topic is 6363 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can i disable buttons and check boxes in my window using MFC while the computer is busy processing. I know that u can disable the buttons as default while designing, but using the CButton Control, how can u disable and re-enable the buttons? Can anyone help, PLZ!!!! THANKS ALL!!!!!!

Share this post


Link to post
Share on other sites
Advertisement

CButton itself doesn''t have any methods that will allow you to enable/disable your control (window). However, notice that CButton is derived from CWnd. CWnd DOES have a method that performs this very function.

HTH,

-Z

Share this post


Link to post
Share on other sites
EnableWindow((GetDlgItem(IDC_BUTTONNAME), FALSE);


"I pity the fool, thug, or soul who tries to take over the world, then goes home crying to his momma."
- Mr. T

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!