URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.