Nindowsライブラリ - ウィンドウサポート関数

nwFindWindowByPos

座標指定によるウィンドウ表示の調査

書式

NWHWND nwFindWindowByPos( x, y ) 
Sint16 x 
Sint16 y 

引数

x,y   スクリーン座標

戻り値

成功   ウィンドウハンドル
失敗   NULL

解説

指定されたスクリーン座標(x, y)に、ウィンドウが表示されているかどうかを調べます。

用例

/* Checks to see if the window is displayed
   at the coordinates of the mouse cursor */
Sint32 x, y;
nwGetMousePosition( &x, &y );
if ( nwFindWindowByPos( x, y ) != NULL ){
	/* The window is displayed */
} else {
	/* The window is not displayed */
}

参照

nwFindWindow()

nwFindWindowByPos
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999