-
active/inactive
Is it possible to make something like a button, edit box, etc...to become inactive or active when a msg is recieved?
eg.
Code:
case WM_COMMAND:
switch(wParam)
case IDC_BUTTON1:
// makes it active...
break;
case IDC_BUTTON2:
// inactive again...
Its sloppy and probably has a mistake, but you get what I mean...
Thanks
-Chris
-
yes,
you can call EnableWindow(hWnd,TRUE); to enable a control or you can call EnableWindow(hWnd,FALSE); to disable a control. It works with all windows, controls, menu's ect ect.