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] - Diff between revs 27 and 174

Only display areas with differences | Details | Blame | View Log

Rev 27 Rev 174
#include "windows.h"
#include "windows.h"
#include "wintools.h"
#include "wintools.h"
 
 
BOOL WINAPI
BOOL WINAPI
PtInsideWindow(HWND hwnd,UINT x,UINT y)
PtInsideWindow(HWND hwnd,UINT x,UINT y)
{
{
        /* Determine whether or not the position ( x, y) is contained                   */
        /* Determine whether or not the position ( x, y) is contained                   */
        /* within the control's client rectangle.                                                       */
        /* within the control's client rectangle.                                                       */
 
 
        RECT    clientRect;
        RECT    clientRect;
        POINT   buttonPoint;
        POINT   buttonPoint;
 
 
        buttonPoint.x = x;
        buttonPoint.x = x;
        buttonPoint.y = y;
        buttonPoint.y = y;
 
 
        GetClientRect( hwnd, &clientRect);
        GetClientRect( hwnd, &clientRect);
        return PtInRect( &clientRect, buttonPoint);
        return PtInRect( &clientRect, buttonPoint);
}
}
 
 

powered by: WebSVN 2.1.0

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