|
From: <jos...@ya...> - 2001-05-18 07:34:51
|
Hi,
I think the mistake is down there. Check out my correction.
--- Andre` Niel Cameron <ca...@op...> escribió: > Does any one
see any errors here? It compiles fine it just doesn't
> WORK!:(
> BOOL LeftRight;
> BOOL TopBottom;
>
> BOOL ClickButton(RECT szRectName)
> {
> if ((g_x > szRectName.left) && (g_x < szRectName.right))
> LeftRight = TRUE;
> else LeftRight = FALSE;
>
> if ((g_y < szRectName.top) && (g_y > szRectName.bottom))
> TopBottom = TRUE;
> else TopBottom = FALSE;
>
> if ((LeftRight = TRUE) && (TopBottom = TRUE))
If you want to compare you need to use
if ((LeftRight == TRUE) && (TopBottom == TRUE))
Otherwise you're just doing an assignment.
> return TRUE;
> else return FALSE;
> }
>
hth
Chemanuel
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
http://messenger.yahoo.es
|