|
-
Jul 14th, 2001, 01:53 PM
#1
Thread Starter
Frenzied Member
-
Jul 14th, 2001, 04:59 PM
#2
Fanatic Member
Just curious, but was it me who gave you that idea? Cause I know i said it would be better...
Anyway, post the loop, it would help me to see where it goes wrong.
Alcohol & calculus don't mix.
Never drink & derive.
-
Jul 14th, 2001, 06:21 PM
#3
transcendental analytic
WM_COMMAND message is sent to the window proc if you click a menu item, maybe you should check for WM_LBUTTONDOWN instead?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 14th, 2001, 07:03 PM
#4
Thread Starter
Frenzied Member
WM_LBUTTONDOWN does work
might have been you wynd 
Code:
case WM_LBUTTONDOWN:
for(i=1; i<=8; i++) {
for(a=1; a<=8; a++) {
if(LOWORD(wParam) == BN_CLICKED && (HWND)lParam == Board[a][i]) {
int x;
int y;
int Finalx;
int Finaly;
char buff[5];
char buff2[5];
//this section gets the x and y values
sprintf(buff, itoa(a,buff2,10));
sprintf(buff, " , ");
sprintf(buff, itoa(i, buff2,10));
MessageBox(hWnd, buff, "X , Y", MB_OK);
}
}
}
all it does is have a messagebox say the a and i values.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|