Lin(林),你给的地址是个英文网站 呀,没中文的吗我的英文不行
All Products | Support | Search | microsoft.com Guide Home | Magazines | Libraries | Developer Centers | Resources | Downloads | Code | Search MSDN |
--------------------------------------------------------------------------------
Downloads
MS Product Catalog
Microsoft Accessibility
--------------------------------------------------------------------------------
Server Products
Developer Tools
Office Family
Windows Family
MSN
--------------------------------------------------------------------------------
Knowledge Base
Product Support Options
Service Partner Referrals
Year 2000 Compliance
--------------------------------------------------------------------------------
Search microsoft.com
MSN Web Search
--------------------------------------------------------------------------------
microsoft.com Home
MSN Home
--------------------------------------------------------------------------------
Contact Us
Events
Newsletters
Profile Center
Training & Certification
Free E-mail Account
--------------------------------------------------------------------------------
Voices
MSDN Magazine
MSJ
MIND
MSDN Newspaper
.NET Show
--------------------------------------------------------------------------------
MSDN Library
Web Workshop
Code Center
Downloads
--------------------------------------------------------------------------------
BizTalk Server
Commerce Server
DirectX
E-Business
Internet Explorer
.NET Framework & Tools
Office
SQL Server
Visual Studio
Web Services
Windows
XML
More...
--------------------------------------------------------------------------------
Bug Center
DLL Help Database
Support
Newsgroups
Members Helping Members
User Groups
Chats
Training
Events
Developer Books
Component Resources
Browser extensions, introduced in Microsoft® Internet Explorer 5, allow developers to add functionality to the browser and enhance the user interface.
Overviews/Tutorials
Adding Explorer Bars This tutorial explains how to add an Explorer Bar in Internet Explorer.
Adding Menu Items This tutorial explains how to add a menu item that runs a Microsoft® Windows® application or that runs a script to the Tools menu or Help menu in Internet Explorer.
Adding Toolbar Buttons This tutorial explains how to add a toolbar button to the Internet Explorer user interface.
Browser Extensions Browser extensions allow developers to provide easy access to their browser enhancements by adding elements (like an Explorer Bar) to the default user interface. Introduced in Internet Explorer 4.0, this feature enables developers to create Explorer Bars and add entries into the standard context menus. Beginning with Internet Explorer 5, this feature allows developers to add entries into the Tools menu and buttons to the toolbar.
Creating Custom Explorer Bars, Tool Bands, and Desk Bands The Explorer Bar was introduced with Internet Explorer 4.0 to provide a display area adjacent to the browser pane. It is basically a child window within the Internet Explorer window, and it can be used to display information and interact with the user in much the same way. Explorer Bars are most commonly displayed as a vertical pane on the left-hand side of the browser pane. However, an Explorer Bar can also be displayed horizontally, below the browser pane.
Customizing the Browser Toolbar This tutorial explains how to customize the appearance of the toolbar area in Internet Explorer.
Explorer Bar Style Guide This guide will help you design Explorer Bars to add to the Microsoft®Internet Explorer user interface.
Toolbar Button Style Guide This guide will help you design icons for toolbar buttons that you add to the Internet Explorer user interface.
Web Accessories Web Accessories are browser enhancements that any developer can create using browser extensions. Users can then add these Web Accessories to their copy of Internet Explorer. By creating Web Accessories, developers have a very powerful way to enable new features and functionality.
Methods
GetBandInfo Retrieves the information for a band object.
Interfaces
IDeskBand IDeskBand is used to obtain information about a band object. See the Creating Custom Explorer Bars, Tool Bands, and Desk Bands article for more information about band objects.
Structures
DESKBANDINFO Contains and receives information for a band object. This structure is used with the IDeskBand::GetBandInfo method.
type
TForm1 = class(TForm)
Button1: TButton;
ListBox1: TListBox;
ListBox2: TListBox;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
xs:IShellWindows;
ib:IWebbrowser2;
i:Integer;
begin
xs:=CoShellWindows.Create;
for i:=0 to xs.Count -1 do begin
ib:=xs.Item(i) as IWebbrowser2;
ListBox1.Items.Add(ib.LocationURL);
ListBox2.Items.Add(ib.LocationName);
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
DDE:TDdeClientConv;
begin
DDE:=TDdeClientConv.Create(self);
if DDE.SetLink('IExplore','WWW_GetWindowInfo') then
Label1.Caption:=DDE.RequestData('0xFFFFFFFF,sURL,sTitle')
else
ShowMessage('IE is not running');
DDE.Free;
end;
//URL:string;
DDE.ServiceApplication:='iexplore';
if DDE.SetLink('iexplore','www_GetWindowInfo') then
URL:=DDE.RequestData('1,0');
Label1.Caption:=URL;