Re: How to disable(make gray) a CButton in WTL

Tech-Archive recommends: Fix windows errors by optimizing your registry



<ZhiguoYoung@xxxxxxxxx> wrote in message
news:1178380507.438933.269760@xxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a dialog-based WTL project.
There are several buttons in the dialog, and sometimes I need to
disable some of them.
How can I do that?

button.EnableWindow(FALSE);

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.


Quantcast