Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetWindowPos?

Status
Not open for further replies.

XerxesTheMighty

Programmer
Jun 15, 2003
72
US
If there is a SetWindowPos why isn't there a GetWindowPos?
Anyway here's my question: how do you get the current window position?
I've tried the WINDOWINFO/GetWindowInfo--but VC++6.0 doesn't like it, it says its 'undefined', so I looked in winuser.h (which I included) and both are there, so I don't know whats wrong with it. Is there any other way to get the position of the window?

--------------
"Ask a question and your a fool for three minutes, don't ask it and your a fool for a lifetime." -Chinese Proverb

Xerxes Dynatos
 
There are tow function. The most often used is GetWindowRect. If window is not rectangular, you can use GetWindowRgn.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top