Hi all

I'm having some troubles disabling/graying out buttons in my dialogbox at runtime. I'm using the DialogBoxParam to create the dialogbox. But what API function will I use to disable/enable buttons ? I have looked through my API call library but can't seem to find the answer :rolleyes: I only found the EnableMenuItem and EnableWindow ..... Will I have to set up my buttons with CreateWindowEx to be able to disable/enable them ???

Hope you guys can help me. Thanks!
Posted on 2003-06-23 08:30:39 by catch 22
You can get the hwndle of your controls with GetDlgItem, and then call EnableWindow. You don't have to create your controls with CreateWindowEx, you can also use your dialog box resources.
Posted on 2003-06-23 09:04:46 by QvasiModo
Thanks alot...


Works just fine :)
Posted on 2003-06-23 09:49:58 by catch 22