Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to enable a frame and it's option buttons???

Status
Not open for further replies.

VCPro

Programmer
Joined
Feb 3, 2003
Messages
30
Location
US
I have a drop down combo box and frame within a form.
The frame contains two option buttons and another combo box.
Once there is change in the drop down combo box I need
to enable the frame with the option buttons and combo for the end user to change.

Right Now i am using the following code but the frame doesn't get enabled. Would appreciate any help.

OnSeleChangeCombo

GetDlgItem (Option1)->EnableWindow(TRUE);
GetDlgItem (Option2)->EnableWindow(TRUE);

Can some one help me figure out why the code above is not enabling the options for user modifications??

Thanks in Advance!
 
The Option1/2 in:
GetDlgItem(Option1)->EnableWindow(TRUE);

Is that the actual control ID of the option buttons?
If you follow the MFC conventions, it should be something like IDC_xxx. From your code I can't see whether or not this is the case, but it just may be....
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top