summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-12-25 00:43:02 +0000
committerRené Schümann <white06tiger@gmail.com>2014-12-25 00:43:02 +0000
commit42be80f3559956cbeb6a97e9c8d7e7c11c595cb9 (patch)
treeef66a7c3cda89c39fb5f7ed0ea18ffa75d569480 /plugins
parent1b725b0b97a2c3d5a2a1f097ce88eede1971adce (diff)
SendSS:
! fixed UAC/elevated window issue with target selection ! fixed text cursor possible on target selection git-svn-id: http://svn.miranda-ng.org/main/trunk@11617 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SendScreenshotPlus/src/UMainForm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp
index 1f808af0f4..7be8822ce0 100644
--- a/plugins/SendScreenshotPlus/src/UMainForm.cpp
+++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp
@@ -511,7 +511,9 @@ void TfrmMain::wmTimer(WPARAM wParam, LPARAM lParam){
m_hTargetHighlighter=CreateWindowEx(WS_EX_LAYERED|WS_EX_TRANSPARENT|WS_EX_TOOLWINDOW,(TCHAR*)g_clsTargetHighlighter,NULL,WS_POPUP,0,0,0,0,NULL,NULL,g_hSendSS,NULL);
if(!m_hTargetHighlighter) return;
SetLayeredWindowAttributes(m_hTargetHighlighter,0,123,LWA_ALPHA);
+ SetSystemCursor(CopyCursor(GetIcon(ICO_TARGET)),OCR_IBEAM);//text cursor
SetSystemCursor(CopyCursor(GetIcon(ICO_TARGET)),OCR_NORMAL);
+ SetActiveWindow(m_hTargetHighlighter); // activate highlighter to fix focus problems with UAC (unelevated GetAsyncKeyState() fails if an elevated app got focus)
Hide();
}
if(!(GetAsyncKeyState(primarymouse)&0x8000)){