Hi - I'm new to MFC, so hopefully this is an easy one...I'm trying to write code that will disable a pushbutton once the user clicks it, and it should remain disabled until the task it triggered is completed. Everything works except for the disabling. I used EnableWindow() to gray out the button, however even though the button is grayed out it still performs the task when it is clicked. Can anyone help with this?