]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/services/gfx/mw/v2_0/src/mwin/winlib/ptinsid.c
Initial revision
[karo-tx-redboot.git] / packages / services / gfx / mw / v2_0 / src / mwin / winlib / ptinsid.c
1 #include "windows.h"
2 #include "wintools.h"
3
4 BOOL WINAPI
5 PtInsideWindow(HWND hwnd,UINT x,UINT y)
6 {
7         /* Determine whether or not the position ( x, y) is contained                   */
8         /* within the control's client rectangle.                                                       */
9
10         RECT    clientRect;
11         POINT   buttonPoint;
12
13         buttonPoint.x = x;
14         buttonPoint.y = y;
15
16         GetClientRect( hwnd, &clientRect);
17         return PtInRect( &clientRect, buttonPoint);
18 }