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!

How do I manipulate a control in a dialog?

Status
Not open for further replies.

Homunkulus

Programmer
May 17, 2002
1
DE
I am using: "dialogH = CreateDialog(NULL,MAKEINTRESOURCE(IDD_DIALOG),NULL,MessageHandler);" to create a moddless dialog.

With: "SetWindowText(GetDlgItem(dialogH, IDC_EDIT1),strText);" I am able to put text in a control.

Now i want to deactivate some controls and turn some option fields on or off...but i dont know how :(

For example: How do I deactivate the control IDC_BUTTON?
And how do i turn the option field IDC_RADIO on?

hope you can help me
thx ;)
 
use EnableWindow(GetDlgItem(...,...),FALSE) to deactivate
it, and ShowWindow(..) to hide it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top