hey, i'd like to know how i would go about getting the state of a button. what i need to do is check if all of the buttons (id's 500 - 512) are disabled and if they are, do stuff. if not, do nothing. i was thinking about using a SendMessage and sending WS_DISABLED to see if it would return true or false but A. i dont think thatd workd and B. i dont know if it needs a WPARAM & LPARAM. lol
thanks
<edit>
for some reason this function doesn't work....
bed timeCode:void GameCheck(HWND hwnd) { int i = 500, enabled = 0; for (i = 500; i <= 512; i++) { if (EnableWindow(GetWindow(hwnd, i), FALSE) == 0) { EnableWindow(GetWindow(hwnd, i), TRUE); ++enabled; } } if (enabled == 0) { EnableDisable(hwnd, FALSE, 513, 0); MessageBox(NULL, "Game Over :)\nThanks for playing!\nYou can save the\nending stats if you'd like.", "Done", MB_OK | MB_ICONEXCLAMATION); } }![]()



LinkBack URL
About LinkBacks
....



