你需要的是實現IshellExtinit,IContextMenu這兩個Windows 外殼接口! 做起來也不難, 只要實現三個方法: Function QueryContextMenu(Menu:HMENU;indexMenu,idcmdfirst,idCmdLast,uFlags:UINT):HResult;stdcall; Function InvokeCommand(Var lpid:TCMInvokeCommandInfo):Hresult;stdcall ; Function GetCommandString(idCmd,uType:UINT;pwReserved:PUINT;pszName:LPSTR;cchMax:UINT):HResult;stdcall ; 怎樣得到文件名路徑列表(可能多選)用:DragQueryFile來得到
只要實現三個方法:
Function QueryContextMenu(Menu:HMENU;indexMenu,idcmdfirst,idCmdLast,uFlags:UINT):HResult;stdcall;
Function InvokeCommand(Var lpid:TCMInvokeCommandInfo):Hresult;stdcall ;
Function GetCommandString(idCmd,uType:UINT;pwReserved:PUINT;pszName:LPSTR;cchMax:UINT):HResult;stdcall ;
怎樣得到文件名路徑列表(可能多選)用:DragQueryFile來得到