Use this routine to find the current window handle named window.


perform "_getwhnd"

if ($status < 0) done

; hWnd = $51

; sizeof(hWnd) = $52

Please note: This then allows you to call other windows API functions that require the window handle of the current form.


This function is only available under Win32 platforms (ie: Windows 95/98/ME and NT/2000).

Trying to find the window handle of a window that has not been created results in a NULL return value from _getwhnd(). Therefore it is not possible to call it from the execute trigger.

$Revision: 1.11 $ $Date: 2011/02/28 02:56:32 $[go to top]