This Program Shows How To Put Images In A:
* ComboBox
* ListBox
* TabControl
* ToolBarI Listed The Systems Drives For This Example
(Removable Disk, Fixed, CD-Rom, Remote & Ramdisk).
Each Of These Disks Has Its Own Picture.
Each Picture Is Stored In An ImageList.DON''T FORGET TO SET THE STYLE OF THE LISTBOXES, COMBOBOXES,... TO OWNERDRAWN...
The ToolBar Has An ImageList Of Its Own Where The Images Will
Be Put In During The DriveScanning Routine (Same For The TabControl)
For The ListBox & ComboBox, the below mentionned code should be simple to understand...
* ComboBox
* ListBox
* TabControl
* ToolBarI Listed The Systems Drives For This Example
(Removable Disk, Fixed, CD-Rom, Remote & Ramdisk).
Each Of These Disks Has Its Own Picture.
Each Picture Is Stored In An ImageList.DON''T FORGET TO SET THE STYLE OF THE LISTBOXES, COMBOBOXES,... TO OWNERDRAWN...
The ToolBar Has An ImageList Of Its Own Where The Images Will
Be Put In During The DriveScanning Routine (Same For The TabControl)
For The ListBox & ComboBox, the below mentionned code should be simple to understand...
解决方案 »
- 怎样向Visual Foxpro写的程序发送消息?重谢!!!
- ACM延迟问题
- Delphi 与Crystal Reports 水晶报表如何关联
- 请高手指教----Pooler这个例子
- 如何在安装程序中添加BDE?
- 如果自动完成基类的虚拟方法
- 关于使用EpsonU300B打印机打印凭条和弹出收银箱的问题
- 我刚装上XPMenu控件,觉得不爽,怎么卸掉它,有谁知道金山词霸2002具体是哪一套XPMenu做的吗?请告诉我详细下载地址?
- 年月日的问题,请各位大哥帮帮忙!
- 请教最佳算法!?
- 毕业设计 课题是分布式售票管理系统 请大家提供思路!非常谢谢大家!!
- This is done be SendMessage
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ImgList, ExtCtrls, ComCtrls, ToolWin;type
TForm1 = class(TForm)
ComboBox1: TComboBox;
Button1: TButton;
ImageList1: TImageList;
ImageList2: TImageList;
ImageList3: TImageList;
ImageList4: TImageList;
ImageList5: TImageList;
ImageL