| | |
| | | alert(L"文件打开失败1!"); |
| | | return -1; |
| | | } |
| | | //openRet = win32::ShellExecute(0,L"open",L"C:/Temp/"+name,L"",L"",5); |
| | | //openRet = ShellExecuteW(0,L"open",L"C:/Temp/"+name,L"",L"",5); |
| | | openRet = ShellExecuteW(0, L"open", L"C:/Temp/" + sfile + ext, L"", L"", 5); |
| | | if (openRet < 32) |
| | | { |
| | |
| | | xml x; |
| | | |
| | | xaserverarg args ; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | |
| | | args.AddArg(L"myurl", myurl); |
| | | args.AddArg(L"name", ret); |
| | | args.AddArg(L"filepath", sname); |
| | |
| | | } |
| | | return 0; |
| | | } |
| | | #if 0 |
| | | int OnDocumentOpen() |
| | | { |
| | | int LVNI_ALL = 0x0000; |
| | |
| | | |
| | | return -1; |
| | | } |
| | | |
| | | #endif |
| | | int OnDeleteFile() |
| | | { |
| | | int LVNI_ALL = 0x0000; |
| | |
| | | return 0; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"filepath", file); |
| | | xml x ; |
| | | if (xurl::get(L"/sale/data/TDocument3/file/delete", arg.GetString(), x) != 1) |
| | |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&DocSO3::OnXCommand); |
| | | //获取焦点事件,用于重置工具条 |
| | | //AttachEvent(L"WM_SETFOCUS",OnSetFocus); |
| | | return 1; |
| | | } |
| | | |
| | | /* |
| | |
| | | |
| | | int onload() |
| | | { |
| | | |
| | | SetArg(); |
| | | lv_view = GetControl(L"lv_view"); |
| | | columnCount = 0; |
| | | SetListViewHeaderColumn(L""); |