Why doesn't something like this work? I want to count 1 click, then the second...and then have the counter go back to 1
Code:BOOL click1=true; BOOL click2=false; case WM_COMMAND: for(i=1;i<=8;i++) { for(a=1;a<=8;a++) { if(LOWORD(wParam) == BN_CLICKED && (HWND)lParam == Board[a][i]) { if(click1==true && click2==false) { MessageBox(hWnd, "Click1", "click", MB_OK); click1==false; click2==true; break; } if(click1==false && click2==true ) { MessageBox(hWnd, "Click2", "click", MB_OK); click1==true; click2==false; break; } } } } return 0;




Reply With Quote