I have a button in my game that basically deals three cards. Now when the three cards match the player must click something else in the client area to continue the game. The button is a window button made with CreateWindow wand shows my bitmap on it. What i need to do is make the button not work when the player needs to be doing something else. How do i disable the button in this case. Been reading the win32api but i can't seem to find anything.

Thanx in advance


Game programmers "Love the crash"
Posted on 2001-10-17 23:56:46 by titan

invoke EnableWindow, hWnd, 0

Where hWnd is the handle of the button.
Posted on 2001-10-18 00:39:09 by gliptic