diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-06-09 22:21:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-06-09 22:21:47 +0000 |
commit | 5cad65e7fb3f8ffaad2355d0b85d980cc5ef07c3 (patch) | |
tree | 5ed63205ca0a718f456df8cdda9c09c4e9a8eef8 /protocols/Skype/src/skype_utils.cpp | |
parent | 2c6ee1a27c2dab1d3db454bbc2c5e43de2ec9231 (diff) |
Skype:
- fixed logout from chat on miranda closing (#362)
- added new chat command (moderation and etc.)
- some improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@4905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r-- | protocols/Skype/src/skype_utils.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp index 491d32d68e..fbb5fb5f02 100644 --- a/protocols/Skype/src/skype_utils.cpp +++ b/protocols/Skype/src/skype_utils.cpp @@ -531,3 +531,15 @@ bool CSkypeProto::FileExists(wchar_t *path) return false;
}
+void CSkypeProto::CopyToClipboard(const wchar_t *text)
+{
+ HWND hwnd = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
+ ::OpenClipboard(hwnd);
+ ::EmptyClipboard();
+ HGLOBAL hMem = ::GlobalAlloc(GMEM_MOVEABLE, sizeof(TCHAR)*(::lstrlen(text)+1));
+ TCHAR *s = (TCHAR *)::GlobalLock(hMem);
+ ::lstrcpy(s, text);
+ ::GlobalUnlock(hMem);
+ ::SetClipboardData(CF_UNICODETEXT, hMem);
+ ::CloseClipboard();
+}
\ No newline at end of file |