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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable controls 2

Status
Not open for further replies.

foxnet

Programmer
Mar 24, 2005
21
US
I have a Dialog box that contains combo boxes, check boxes and edit boxes. When the user selects some of the check boxes I need to disable some combo and edit boxes. Is there a way to disables the combo boxes after they are created. The only way I get get it working is by redrawing the boxes with the WS_DISABLED flag.

Thanks for any help
 
Code:
theCtrl.EnableWindow(FALSE);

/Per
[sub]
www.perfnurt.se[/sub]
 
Or if you are using the SDK
Code:
::EnableWindow (GetDlgItem (hwnd, thectrlid), FALSE);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top