打印本文 打印本文 关闭窗口 关闭窗口
更改图标对话框
作者:武汉SEO闵涛  文章来源:敏韬网  点击数852  更新时间:2009/4/23 18:37:42  文章录入:mintao  责任编辑:mintao

SHChangeIconDialog(hwnd,filename,0,index);

function SHChangeIconDialog;external ''''shell32.dll'''' index 62;

function SHChangeIconDialog(h:hwnd;filename:pchar; Reserved:integer;var index:integer):integer;stdcall;

{

procedure TForm1.Button1Click(Sender: TObject);

var

b:integer;

str:array[0..MAX_PATH] of char;

begin

b:=0;

if opendialog1.Execute then

begin

strpcopy(str,opendialog1.filename);

shChangeIconDialog(handle,str,0,b);

end;

showmessage(str);

end;

}

function SHChangeIconDialog(h:hwnd;filename:pchar; Reserved:integer;var index:integer):integer;stdcall;

打印本文 打印本文 关闭窗口 关闭窗口