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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [mwin/] [winlib/] [ptinsid.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
#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.