快捷图标! 在DELPHI中如何设置快捷图标!像WORD中的快捷图标一样。在线等你们的答案! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 实不是建立快捷方式呢?转贴:建立快捷方式const CCH_MAXNAME=255; LNK_RUN_MIN=7; LNK_RUN_MAX=3; LNK_RUN_NORMAL=1;type LINK_FILE_INFO=record FileName:array[0..MAX_PATH] of char; WorkDirectory:array[0..MAX_PATH] of char; IconLocation:array[0..MAX_PATH] of char; IconIndex:integer; Arguments:array[0..MAX_PATH] of char; Description:array[0..CCH_MAXNAME] of char; ItemIDList:PItemIDList; RelativePath:array[0..255] of char; ShowState:integer; HotKey:word; end;function CreateLinkFile(const info:LINK_FILE_INFO;const DestFileName:string=''):boolean;var anobj:IUnknown; shlink:IShellLink; pFile:IPersistFile; wFileName:widestring;begin wFileName:=destfilename; anobj:=CreateComObject(CLSID_SHELLLINK); shlink:=anobj as IShellLink; pFile:=anobj as IPersistFile; shlink.SetPath(info.FileName); shlink.SetWorkingDirectory(info.WorkDirectory); shlink.SetDescription(info.Description); shlink.SetArguments(info.Arguments); shlink.SetIconLocation(info.IconLocation,info.IconIndex);// shlink.SetIDList(info.ItemIDList); shlink.SetHotkey(info.HotKey); shlink.SetShowCmd(info.ShowState); shlink.SetRelativePath(info.RelativePath,0); if DestFileName='' then wFileName:=ChangeFileExt(info.FileName,'lnk'); result:=succeeded(pFile.Save(pwchar(wFileName),false));end; 按照你说的意思,其实在程序中就是一排按钮而已!只不过按忸不是一般的button而是位于ToolBar上的Toolbutton上面每个按钮有自己的图标,大小和按钮一般大看起来就只有图标了! combobox中的值 delphi 谁能帮我简化这段IF语句.或者有另一种能实现这IF语句的办法. DELPHI调用存储过程 请问Dbgrid里面的日期为什么显示为1899.12.30 SQL语句 怎样编写一个Delphi获取modem来电号码的程序? 多线程读取串口数据死机问题(向串口写数据不死机),请高手看一下。 为何必须运行一次程序才会调用需要用到的文件呢?急救!! 求取dbgrideh最高汉化版本,要求有源码。 一个PageControl问题,大虾save me!!!!!!! ADO打开数据库时出错,高分求助高手! 各位大侠,你们是怎样学数据库的,给点意见行吗?
转贴:建立快捷方式
const CCH_MAXNAME=255; LNK_RUN_MIN=7; LNK_RUN_MAX=3; LNK_RUN_NORMAL=1;
type LINK_FILE_INFO=record FileName:array[0..MAX_PATH] of char; WorkDirectory:array[0..MAX_PATH] of char; IconLocation:array[0..MAX_PATH] of char; IconIndex:integer; Arguments:array[0..MAX_PATH] of char; Description:array[0..CCH_MAXNAME] of char; ItemIDList:PItemIDList; RelativePath:array[0..255] of char; ShowState:integer; HotKey:word; end;
function CreateLinkFile(const info:LINK_FILE_INFO;const DestFileName:string=''):boolean;var anobj:IUnknown; shlink:IShellLink; pFile:IPersistFile; wFileName:widestring;begin wFileName:=destfilename; anobj:=CreateComObject(CLSID_SHELLLINK); shlink:=anobj as IShellLink; pFile:=anobj as IPersistFile; shlink.SetPath(info.FileName); shlink.SetWorkingDirectory(info.WorkDirectory); shlink.SetDescription(info.Description); shlink.SetArguments(info.Arguments); shlink.SetIconLocation(info.IconLocation,info.IconIndex);// shlink.SetIDList(info.ItemIDList); shlink.SetHotkey(info.HotKey); shlink.SetShowCmd(info.ShowState); shlink.SetRelativePath(info.RelativePath,0); if DestFileName='' then wFileName:=ChangeFileExt(info.FileName,'lnk'); result:=succeeded(pFile.Save(pwchar(wFileName),false));end;
只不过按忸不是一般的button
而是位于ToolBar上的Toolbutton
上面每个按钮有自己的图标,大小和按钮一般大
看起来就只有图标了!