Sign in to follow this  

graying out radio buttons during runtime?

This topic is 4691 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

Assuming i have a Dialog Window "hwndDlg" that has a radiobutton with the ID "resourceID" then the following code marks it as checked: SendDlgItemMessage(hwndDlg, resourceID, BM_SETCHECK,BST_CHECKED,0); That works. Yay! :) But how do I disable the button (e.g. graying it out) - is there a general ItemMessage you can send to any object in a dialog window that sets the "Disabled" parameter? Browsing winuser.h gave me a huge list of messages, but I can impossibly try all the possible combinations :)

Share this post


Link to post
Share on other sites

This topic is 4691 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this