If I have several radio buttons, can I enable or disable a command button depending on which radio button is clicked? For example, if 3 radio buttons in a group are labeled WHITE, BLACK, and GRAY, can I enable a command button on the same dialog only if WHITE or BLACK are checked, but not GRAY? I thought of using an ON_UPDATE_COMMAND_UI macro, with the handler function containing an "if" statement checking the variables mapped to the radio controls, but I think DoDataExchange doesn't get called yet to set the values. Any other ideas how I can dynamically handle the state of a button (or edit box, etc) according to selections made by the user?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.