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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mw/] [src/] [mwin/] [winlib/] [ptinsid.c] - Rev 1765

Go to most recent revision | Compare with Previous | Blame | View Log

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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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