ptinsid.c

来自「开放源码实时操作系统源码.」· C语言 代码 · 共 19 行

C
19
字号
#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);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?