请问打开Ie后怎么修改Ie地址栏里的值?
谢谢,小弟急用.请赋代码.
谢谢,小弟急用.请赋代码.
解决方案 »
- 两个字节,如果写入一个大于65535的数?
- 怎样把查询所得的字段值修饰后再添加到dbgrideh列中,30分
- 高手请进,两个字符串比较的问题
- Delphi7里怎么没找到 ClientSocket 和 ServerSocket 两个控件啊
- 关于socket编程问题,新手请教!在线等待!
- fastreprot的直接打印语句怎么写呀???(急急急。。。。。)
- 慨叹于“八国联军”又来了!
- 在线等待您的回答!!!!!!!!!!!急急急急急
- 哪位有expressbar4.1 or 4.2******100分求
- 如何在delphi5打开delph6的程序?
- Delphi 6 居然有这样的怪事
- 为什么,我该这么办?
var
str,url:array [0..254] of char;
begin
getclassname(h,@str,255);
if strpas(@str)='ComboBoxEx32' then // ComboBoxEx32可以改成Edit.
SendMessage(h,WM_SETTEXT,255,LongInt(@url));
result:=true;
end;function callbackproc(H:HWnd;lparam:longint):Boolean;stdcall;
var
str:array [1..255] of char;
begin
getclassname(h,@str,255);
if ((strpas(@str)='CabinetWClass') or (strpas(@str)='IEFrame')) then
begin
Enumchildwindows(h,@SetURL,0);
end;
result:=true;
end;procedure TForm1.findbuttonClick(Sender: TObject);
begin
Enumwindows(@callbackproc,0);
end;
url:array[0..254] of char;Function SetURL(H:hwnd;lparam:longint):boolean;stdcall;
var
str:array [0..254] of char;
begin
getclassname(h,@str,255);
if strpas(@str)='ComboBoxEx32' then // ComboBoxEx32¿ÉÒԸijÉEdit.
SendMessage(h,WM_SETTEXT,255,LongInt(@url));
result:=true;
end;function callbackproc(H:HWnd;lparam:longint):Boolean;stdcall;
var
str:array [1..255] of char;
begin
getclassname(h,@str,255);
if ((strpas(@str)='CabinetWClass') or (strpas(@str)='IEFrame')) then
begin
Enumchildwindows(h,@SetURL,0);
end;
result:=true;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
url:='www.csdn.net';
Enumwindows(@callbackproc,0);
end;