Solved

How to get the screen position of IE

Posted on 2002-07-25
5
234 Views
Last Modified: 2010-04-04
How to get the screen position of IE display window, I mean the X, Y of the IE display area,(Not include Address Bar, Icon Bar, Menu Bar etc., only display area)

Thanks
Shekou
0
Comment
Question by:shekou
5 Comments
 
LVL 7

Accepted Solution

by:
Cynna earned 100 total points
ID: 7179698
This demo will do it for the topmost IE window:

procedure TForm1.Button11Click(Sender: TObject);
var h: Hwnd;
    r: TRect;
begin
   h:= FindWindow('IEFrame', nil);
   h:= FindWindowEx(h, 0, 'Shell DocObject View', nil);
   h:= FindWindowEx(h, 0, 'Internet Explorer_Server', nil);
   // Store display window rectangle coordinates in r:
   GetWindowRect(h, r);
   Caption:='Topmost IE docview rectangle: '+IntToStr(r.Left)+','+IntToStr(r.Top)+' - '+IntToStr(r.Right)+','+IntToStr(r.Bottom);
end;

0
 

Expert Comment

by:cdbsi
ID: 7181694
You can use WinSight which is included with Delphi to get the class names of different windows and applications.
0
 

Expert Comment

by:CleanupPing
ID: 9342992
shekou:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9965890
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: Cynna

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mobile Keyboard covers the display of the TMemo 3 95
Making delphi communicate with a c# service 16 111
Reconfigure Delphi Install? 2 60
update joined tables 2 55
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question