飞秋收到文件之后,会有个文件名的列表,这时双击文件名字的话会打开这个文件所在的文件夹
我想知道这个是怎么实现的,同志们谁能给我讲一下?我现在想做的是,双击文件名字直接打开文件,同志们给我一个想法,给一个思路吧???

解决方案 »

  1.   

    双击的时候响应消息  得到文件的路径名 然后ShellExecuteEx打开
      

  2.   

    To open a folder, use either of the following calls: 
    ShellExecute(handle, NULL, <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
    orShellExecute(handle, "open", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
    To explore a folder, use the following call: ShellExecute(handle, "explore", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);To launch the Shell's Find utility for a directory, use the following call. ShellExecute(handle, "find", <fully_qualified_path_to_folder>, NULL, NULL, 0);