OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [mwin/] [winlib/] [ptinsid.c] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.