|
// *********************************************************
// トップレベルウインドウハンドルの取得
// 戻り値 : トップレベルウインドウハンドル
// *********************************************************
HWND LboxWintool::TopWindow( void )
{
HWND hParent,hWork;
int nCnt;
hWork = LboxWintool::hWndtool;
nCnt = 0;
while( 1 ) {
hParent = GetParent( hWork );
if ( hParent == NULL ) {
return hWork;
}
hWork = hParent;
nCnt++;
if ( nCnt > 50 ) {
return NULL;
}
}
}
| |