|
From: Andre` N. C. <ca...@op...> - 2001-05-17 17:04:13
|
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))
return TRUE;
else return FALSE;
}
|