Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Thanks Vlad !
Yes, in my original message; global coordinates = screen coordinates.
It looks like ClientToScreen is what I need. I'll play with it and see what I can do.
>Can I assume that "global coordinates" means screen coordinates?
>
>You may want to take a look at the code in my FancyToolTip control (in the Files section). I use there several tricks and API functions to get all kind of coordinates, objects under the object under mouse cursor, objects at specific coordinates.
>
>Maybe it helps using API functions for windows. Any VFP form has a window handle (HWND), so, it also has a client area, etc. This should get you to the window area without the toolbars. There is also an API function that returns the window at specified screen coordinates (WindowFromPoint()).
>
>For you specific question (but maybe this is not exactly what you need, but just part of a solution?): Use the ClientToScreen() Win32 API function. It takes a window handle and a point as parameters. The HWND is the handle of the client area of a window and the point is any point inside this area. It returns the equiv coordinates relative to the screen (into the same Point parameter).
>
>Vlad
>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement