Solved

How to get the screen position of IE

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
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…

735 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