i did search it but i wasn't coming up with anything so i stopped searching. lol
thanks
its not working
Code:
void GameCheck(HWND hwnd)
{
int i = 600, enabled = 0;
for (i = 600; i <= 617; i++)
{
if (IsWindowEnabled(GetDlgItem(hwnd, i)) != 0)
{
++enabled;
}
}
if (enabled == 0)
{
HMENU hMenu, hFileMenu;
hMenu = GetMenu(hwnd);
hFileMenu = GetSubMenu(hMenu, 0);
EnableMenuItem(hFileMenu, 2, MF_BYPOSITION | MF_ENABLED);
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);
}
}
am i doing something wrong?