Results 1 to 3 of 3

Thread: Can't anyone count mouseclicks?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Can't anyone count mouseclicks?

    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;

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    I think that everybody is dead!

    I posted 3 question today and got no answer!

    Dam IT!
    Baaaaaaaaah

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    never mind......got it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width