请问大家,FROM里有一个BUTTON,点一下(指定浏览d:\123目录下的文件),能象WINDOWS那样把指定目录下所有文件以缩图的方式列出来,象我们直接在windows XP里点我的电脑,点D:\123一样,我要的效果不是用DELPHI的控件实现的,想直接使用WINDOWS带的,就是调用WINDOWS 的打开目录方式,和他一模一样,不知道大家看明白了没有,就是想借用WINDOWS XP的缩图功能,因为他能很快的显示打图片的缩图,怎么说呢,实际上就是象借用WINDOWS带的计算器一样,不是让你写一个计算器,是调用WINDOWS带的计算器,打开目录。我语言表达能力不是很强劲。

解决方案 »

  1.   

    呵呵,很简单,我知道了,用这个就行shellexecute(handel.....open.....nil...nil..showmodal),但是我想指定他打开目录的方式是“缩略图”的方式,怎么指定缩略图这个参数?
      

  2.   

    UnitFileCtrlCategorydialog and message routinesDelphi syntax:function SelectDirectory(const Caption: string; const Root: WideString; out Directory: string): Boolean; overload;
    function SelectDirectory(var Directory: string; Options: TSelectDirOpts; HelpCtx: Longint): Boolean; overload;
      

  3.   

    UnitFileCtrlCategorydialog and message routinesDelphi syntax:function SelectDirectory(const Caption: string; const Root: WideString; out Directory: string): Boolean; overload;
    function SelectDirectory(var Directory: string; Options: TSelectDirOpts; HelpCtx: Longint): Boolean; overload;
      

  4.   

    GetOpenFileName
    GetSaveFileName
    第一天学delphi.我在VB里面用这两个API函数搞的,很简单,不知道delphi里面要怎么定义..打开窗口后点击"按照所略图"查看就可以了吧..
      

  5.   

    看错了....你是要那种傻傻的我的电脑浏览窗口..这个用 shellexecute 可以实现..