- removed --filetransfer-src and --filetransfer-des args.

- on Window, temporarily use user desktop directory as drop target.
This commit is contained in:
jerry 2013-09-17 18:13:58 +00:00
parent 760e38eeba
commit 340e31298e
9 changed files with 34 additions and 27 deletions

View file

@ -38,6 +38,7 @@
#include "CArchMiscWindows.h"
#include <string.h>
#include <pbt.h>
#include <Shlobj.h>
//
// add backwards compatible multihead support (and suppress bogus warning).
@ -140,6 +141,11 @@ CMSWindowsScreen::CMSWindowsScreen(
forceShowCursor();
LOG((CLOG_DEBUG "screen shape: %d,%d %dx%d %s", m_x, m_y, m_w, m_h, m_multimon ? "(multi-monitor)" : ""));
LOG((CLOG_DEBUG "window is 0x%08x", m_window));
char desktopPath[MAX_PATH];
SHGetFolderPath(NULL, CSIDL_DESKTOP, NULL, 0, desktopPath);
m_desktopPath = CString(desktopPath);
LOG((CLOG_DEBUG "temporarily use desktop directory for drop target: %s", m_desktopPath.c_str()));
}
catch (...) {
delete m_keyState;
@ -1849,3 +1855,9 @@ CMSWindowsScreen::getDraggingFileDir()
return m_draggingFileDir;
}
const CString&
CMSWindowsScreen::getDropTarget() const
{
return m_desktopPath;
}