Bonjour, je souhaiterais pouvoir récupérer le positionnement par rapport à
l'écran d'une fenêtre non windev pour faire un screenshot.
J'arrive à lister donc toutes les fenêtres disponibles dans la barre des
tâches( merci les forums ^^ ), même si j'en ai bcp tropde lister, mais je
ne sais pas vers quoi m'orienter pour récuperer les coordonnées ( j'imagine
qu'il va falloir repasser par une API ? )
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Romain PETIT
Après mure réflexion, Wierko a écrit :
J'arrive à lister donc toutes les fenêtres disponibles dans la barre des tâches( merci les forums ^^ ), même si j'en ai bcp tropde lister, mais je ne sais pas vers quoi m'orienter pour récuperer les coordonnées ( j'imagine qu'il va falloir repasser par une API ? )
http://tinyurl.com/9umdm ou http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindowinfo.asp?frame=true
-- Romain PETIT http://cerbermail.com/?O16kfXOFcq (cliquez sur le lien ci-dessus pour me contacter en privé)
Après mure réflexion, Wierko a écrit :
J'arrive à lister donc toutes les fenêtres disponibles dans la barre des
tâches( merci les forums ^^ ), même si j'en ai bcp tropde lister, mais je
ne sais pas vers quoi m'orienter pour récuperer les coordonnées ( j'imagine
qu'il va falloir repasser par une API ? )
http://tinyurl.com/9umdm
ou
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindowinfo.asp?frame=true
--
Romain PETIT
http://cerbermail.com/?O16kfXOFcq
(cliquez sur le lien ci-dessus pour me contacter en privé)
J'arrive à lister donc toutes les fenêtres disponibles dans la barre des tâches( merci les forums ^^ ), même si j'en ai bcp tropde lister, mais je ne sais pas vers quoi m'orienter pour récuperer les coordonnées ( j'imagine qu'il va falloir repasser par une API ? )
http://tinyurl.com/9umdm ou http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindowinfo.asp?frame=true
-- Romain PETIT http://cerbermail.com/?O16kfXOFcq (cliquez sur le lien ci-dessus pour me contacter en privé)
Wierko
"Romain PETIT" wrote in news:mn.a29a7d54f99628c2.2248 @Signature.fin:
http://tinyurl.com/9umdm
Merci ; )
Donc je parviens bien à obtenir les coordonnées des fenêtres ( pas avec l'APi GetWindowInfo mais ClientToScreen ).
GetWindowInfo permet-il d'obtenir la hauteur et la largeur de la fenêtre ?
"Romain PETIT" <VoirM@Signature.fin> wrote in news:mn.a29a7d54f99628c2.2248
@Signature.fin:
http://tinyurl.com/9umdm
Merci ; )
Donc je parviens bien à obtenir les coordonnées des fenêtres ( pas avec
l'APi GetWindowInfo mais ClientToScreen ).
GetWindowInfo permet-il d'obtenir la hauteur et la largeur de la fenêtre ?
"Romain PETIT" wrote in news:mn.a29a7d54f99628c2.2248 @Signature.fin:
http://tinyurl.com/9umdm
Merci ; )
Donc je parviens bien à obtenir les coordonnées des fenêtres ( pas avec l'APi GetWindowInfo mais ClientToScreen ).
GetWindowInfo permet-il d'obtenir la hauteur et la largeur de la fenêtre ?
Romain PETIT
Wierko vient de nous annoncer :
Donc je parviens bien à obtenir les coordonnées des fenêtres ( pas avec l'APi GetWindowInfo mais ClientToScreen ). GetWindowInfo permet-il d'obtenir la hauteur et la largeur de la fenêtre ?
Oui, voir la structure WINDOWINFO qui contient une autre structure RECT :
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
typedef struct _RECT { LONG left; LONG top; LONG right; LONG bottom; } RECT, *PRECT;
Members
left Specifies the x-coordinate of the upper-left corner of the rectangle. top Specifies the y-coordinate of the upper-left corner of the rectangle. right Specifies the x-coordinate of the lower-right corner of the rectangle. bottom Specifies the y-coordinate of the lower-right corner of the rectangle.
-- Romain PETIT http://cerbermail.com/?O16kfXOFcq (cliquez sur le lien ci-dessus pour me contacter en privé)
Wierko vient de nous annoncer :
Donc je parviens bien à obtenir les coordonnées des fenêtres ( pas avec
l'APi GetWindowInfo mais ClientToScreen ).
GetWindowInfo permet-il d'obtenir la hauteur et la largeur de la fenêtre ?
Oui, voir la structure WINDOWINFO qui contient une autre structure RECT
:
The RECT structure defines the coordinates of the upper-left and
lower-right corners of a rectangle.
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
Members
left
Specifies the x-coordinate of the upper-left corner of the
rectangle.
top
Specifies the y-coordinate of the upper-left corner of the
rectangle.
right
Specifies the x-coordinate of the lower-right corner of the
rectangle.
bottom
Specifies the y-coordinate of the lower-right corner of the
rectangle.
--
Romain PETIT
http://cerbermail.com/?O16kfXOFcq
(cliquez sur le lien ci-dessus pour me contacter en privé)
Donc je parviens bien à obtenir les coordonnées des fenêtres ( pas avec l'APi GetWindowInfo mais ClientToScreen ). GetWindowInfo permet-il d'obtenir la hauteur et la largeur de la fenêtre ?
Oui, voir la structure WINDOWINFO qui contient une autre structure RECT :
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
typedef struct _RECT { LONG left; LONG top; LONG right; LONG bottom; } RECT, *PRECT;
Members
left Specifies the x-coordinate of the upper-left corner of the rectangle. top Specifies the y-coordinate of the upper-left corner of the rectangle. right Specifies the x-coordinate of the lower-right corner of the rectangle. bottom Specifies the y-coordinate of the lower-right corner of the rectangle.
-- Romain PETIT http://cerbermail.com/?O16kfXOFcq (cliquez sur le lien ci-dessus pour me contacter en privé)
Wierko
Elle doit être équivalente à GetWindowPlacement non ?
Elle doit être équivalente à GetWindowPlacement non ?