作者在 2010-01-25 17:19:32 发布以下内容
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, ShellCtrls;
type
TForm1 = class(TForm)
ShellTreeView1: TShellTreeView;
ShellComboBox1: TShellComboBox;
ShellListView1: TShellListView;
Label1: TLabel;
ComboBox1: TComboBox;
procedure ComboBox1Change(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
case ComboBox1.ItemIndex of
0: ShellListView1.ViewStyle := vsList; //列表
1: ShellListView1.ViewStyle := vsIcon; //大图标
2: ShellListView1.ViewStyle := vsSmallIcon; //小图标
3: ShellListView1.ViewStyle := vsReport; // 详细资料
end;
end;
end.