Solved

How to get the screen position of IE

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

18 Experts available now in Live!

Get 1:1 Help Now