Advertisement

CButton and CEdit Problems

Started by December 12, 2000 08:35 PM
0 comments, last by DisKordCoder 24 years, 1 month ago
Ive created several CheckBoxes and Edit boxes in an MFC application. There all working fine, but when the user clicks on a button, i want all the checkboxes and edit boxes to become disabled so they go grey and cannot be clicked on. I have no idea how i can change that property of the Controls. All i know is that i can only change it while actually drawing out the Dialog box by looking at the propertys of each control i place down. Anyone?
To change the controls visibility use this command:

GetDlgItem(IDC_WHATEVER)->EnableWindow(FALSE)

chage the "IDC_WHATEVER" with the name of the control


Corry Trout
ctrout@telusplanet.net

This topic is closed to new replies.

Advertisement