>The question is, are the VFP forms true Windows forms or are they just fake >>windows.
>Costas
Costas,
Forms in VFP are real windows. Here is the FOCUS.FLL code you can use to determine the true Windows window handle :
FOCUSFNC FW_WIN_hwnd( XBASE_PARAMETERS )
/*------------------------------------*/
{ _initparc(1);
_retnl( (long) _WhToHwnd( _WFindTitle( _parc(1) ) ) );
_deinitparc(1);
FOCUSFNCRETURN();
}
You simply pass the exact caption (uppercase/lowercse is important) of the window you want to obtain the handle of. If WIN_hwnd() is not successful, it will return 0.
Pat