Solved

How to get the screen position of IE

Posted on 2002-07-25
5
231 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi custom sort exception 6 136
Delphi - replicating a form 8 65
how to center only a line in richedit? 4 52
select query - oracle 16 94
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now