Hi,
how can I enable or disable a button or another control of a dialog?
Thanks
Posted on 2005-08-26 12:38:03 by falcon1
Use the EnableWindow function.
Posted on 2005-08-26 13:00:54 by Eóin
Disable a button:
invoke EnableWindow, hButton, FALSE

Enable a button:
invoke EnableWindow, hButton, TRUE


To learn another way of doing that:
You can check the button's message documentation.
Or you can follow an important rule: to use the forum's search engine before asking.

falcon1, hope this help.

Regards.

Kecol.-
Posted on 2005-08-26 13:02:48 by Kecol