Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BitBlt
Message
 
To
17/06/1999 18:59:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Re: BitBlt
Miscellaneous
Thread ID:
00230716
Message ID:
00231357
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform