Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BitBlt
Message
 
À
17/06/1999 18:59:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: BitBlt
Divers
Thread ID:
00230716
Message ID:
00231357
Vues:
28
>Thanks George,
>
>Someone pointed out to me that I hadn't yet called SelectObejct(), that was what I was missing. I am still having problems getting the coordinates of the window in properly. Thanks for you help

Just one more thought, Elliot. It begins, however, with a question. Are you using foxtools to retrieve the window handles via _WhTohWnd(_WFindTitl(Form.Caption))? If so, there's another function in foxtools to retrieve the window rectangle: _GetWRect(). It'll elminate one API call, and is easier to deal with than GetWindowRect(). Here's the syntax:
* lnhwnd is the window handle
STORE 0 TO lnTop, lnLeft, lnBottom, lnRight
= _GetWRect(lnhwnd, @lnTop, @lnLeft, @lnBottom, @lnRight)
Note that the value returned by the (and GetWindowRect() as well), include the title bar, and the window frame. So if trying to calculate a position within a window, you have to take these into account. Of course, SYSMETRIC() will help here. For example, assume a form at 0, 0 in relation to the desktop. The 0, 0 postion within the form will be at a different relative position to desktop since this position is below the title bar and frame from the top, and to the left of the frame.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform