Solved

How to get the screen position of IE

Posted on 2002-07-25
5
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

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…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month6 days, 3 hours left to enroll

627 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