Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to printing the current form to the printer?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00106560
Message ID:
00106657
Vues:
26
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform