HICon是一个图标的指针,是一个整数,或者说是句柄
ticon是一个类,类里面的handle就是hicon类型的
eg:
var
a:HIcon;
t:TIcon;
Begin
t:=TIcon.Create;
t.LoadFromFile(....);//your file here
a:=t.Handle;
....
end;
End;
understand now?
ticon是一个类,类里面的handle就是hicon类型的
eg:
var
a:HIcon;
t:TIcon;
Begin
t:=TIcon.Create;
t.LoadFromFile(....);//your file here
a:=t.Handle;
....
end;
End;
understand now?
解决方案 »
- 选择了文件,如何自动刻盘
- tobject类型转换的问题
- 已知IE窗口句柄,如何隐藏它在任务栏上的按钮
- 急!上下键问题!!!
- delphi7如何将在自己计算机上编译的可执行程序在其它计算机上运行?
- 紧急求助!执行刷新代码后,DbgridEh中打回车怎么不跳到下一列而是下一行了?
- System Volume Information里面的文件都是什么文件?
- 各位高手,给小弟推荐一本专门讲delphi调用api的书.谢谢.
- 关于过程的参数传递问题
- Delphi怎么与Access表连接??
- 谁有《Windows网络编程技术》请给我一份
- MidasPageProducer1控件下的DataNavigator1的按钮如何失效?
ImageIndex:=ImageList_AddIcon(ImageList.Handle,HAppIcon);
请问:函数ImageList_AddIcon在哪儿定义的?我怎么找不着呢?
ImageIndex:=ImageList_AddIcon(ImageList.Handle,HAppIcon);
请问:函数ImageList_AddIcon在哪儿定义的?我怎么找不着呢?
ImageList_AddIcon
int ImageList_AddIcon(
HIMAGELIST himl,
HICON hicon
); Adds an icon or cursor to an image list. ImageList_AddIcon calls the ImageList_ReplaceIcon function. Returns the index of the new image if successful, or -1 otherwise.
himl
Handle to the image list. If this parameter identifies a masked image list, the macro copies both the image and mask bitmaps of the icon or cursor. If this parameter identifies a nonmasked image list, the macro copies only the image bitmap.
hicon
Handle to the icon or cursor that contains the bitmap and mask for the new image.
Because the system does not save hicon, you can destroy it after the macro returns if the icon or cursor was created by theCreateIcon function. You do not need to destroy hicon if it was loaded by theLoadIcon function; the system automatically frees an icon resource when it is no longer needed. The ImageList_AddIcon macro is defined as follows: #define ImageList_AddIcon(himl, hicon) ImageList_ReplaceIcon(himl, -1, hicon)