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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [mwin/] [winlib/] [ptinsid.c] - Rev 1765

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);
}
 

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.