summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-06-29 00:08:01 +0000
committerRené Schümann <white06tiger@gmail.com>2014-06-29 00:08:01 +0000
commita86e4b2449985fce6d9fa211bad5de7847cec41a (patch)
treea3d9fcee16cd1bde01dcc17b5a709c7974612d0f /plugins
parent9ec6272a4b967fea1abb853a2fa9a6d314492816 (diff)
SendSS:
+ window selector/highlighter is now "ClientArea" aware ! fixed not always proper highlight of initial window git-svn-id: http://svn.miranda-ng.org/main/trunk@9608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SendScreenshotPlus/src/UMainForm.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp
index 859fd0a9cc..85f88eb822 100644
--- a/plugins/SendScreenshotPlus/src/UMainForm.cpp
+++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp
@@ -389,11 +389,11 @@ void TfrmMain::wmCommand(WPARAM wParam, LPARAM lParam) {
case ID_chkEditor:
m_opt_chkEditor = (BYTE)Button_GetCheck((HWND)lParam);
break;
-
case ID_imgTarget:
- if(m_opt_tabCapture==0) SetTimer(m_hWnd,ID_imgTarget,BUTTON_POLLDELAY,NULL);
+ if(m_opt_tabCapture!=0) break;
+ m_hLastWin=0;
+ SetTimer(m_hWnd,ID_imgTarget,BUTTON_POLLDELAY,NULL);
break;
-
case ID_btnAbout:
TfrmMain::btnAboutClick();
break;
@@ -516,7 +516,14 @@ void TfrmMain::wmTimer(WPARAM wParam, LPARAM lParam){
for(HWND hTMP; (hTMP=GetParent(m_hTargetWindow)); m_hTargetWindow=hTMP);
if(m_hTargetWindow!=m_hLastWin){
m_hLastWin=m_hTargetWindow;
- RECT rect; GetWindowRect(m_hLastWin,&rect);
+ RECT rect;
+ if(m_opt_chkClientArea){
+ GetClientRect(m_hLastWin,&rect);
+ ClientToScreen(m_hLastWin,(POINT*)&rect);
+ rect.right=rect.left+rect.right;
+ rect.bottom=rect.top+rect.bottom;
+ }else
+ GetWindowRect(m_hLastWin,&rect);
int width=rect.right-rect.left;
int height=rect.bottom-rect.top;
if(g_iTargetBorder){