我现在打开文件的,或者是文件夹的属性对话框中增加自己的属性页,该怎么做呢,windows有没有提供接口可供使用呢,如果哪一位有源代码的话能不能给我一个,我的email是[email protected].多谢.

解决方案 »

  1.   

    MFC没有现成的代码,需要自己做:用一个PropertySheet,其中一个PropertyPage上放一个TreeCtrl,用于关联文件系统目录树(这部分代码,可以从别人的例子中找到)......
      

  2.   

    上面说起的关联文件系统目录树的TreeCtrl,现成的代码:树型控件(视图)源代码:CDirTreeCtrl_src
    http://www.vckbase.com/code/listcode.asp?mclsid=3&sclsid=321
      

  3.   

    好想听别人说是要用到com的,是不是这样啊
      

  4.   

    you can hook WM_CREATE for Dlg created by GetOpenFileName or GetSaveFileName,add you own page in that fileopen(save) dialog. 
    ok. no problem.ms implemented that dialog, but it give you chance to modify it. see DLGS.h in MFC dir to know exist IDs. you can not use duplicated control id...of course , direct deal OPENFILENAME::lpfnHook is also OK.
      

  5.   

    http://www.codeguru.com/shell/propsheethandler.shtml
    ...that adds another property page to the Properties dialog, as shown on the left. (Right-click on a file and choose Properties to display this dialog).
      

  6.   

    要用Shell Extension技术吧。去年的《程序员》第6期上有。
    http://www.csdn.net/magazine/download.shtm可以下载源码。