Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to printing the current form to the printer?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00106560
Message ID:
00106657
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform