diff options
author | René Schümann <white06tiger@gmail.com> | 2013-11-05 16:34:51 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2013-11-05 16:34:51 +0000 |
commit | 4d110f6db480ccb999e2089aff73a85e6e349ab5 (patch) | |
tree | 764613f64f1a0c02da8f324cff10e2824de35efd /plugins/SendScreenshotPlus/src/Main.cpp | |
parent | aa7f145a48708f577f6386f7aba86470f36cab26 (diff) |
// final commit (5 out of 5)
+ added new window selection highlighting (removed old one and functions related to it)
+ fully added functionality to capture child windows (this also enables to capture singe controls such as buttons or entire groups)
hold SHIFT or ALT while selecting a window to capture child windows
*+ new target icon (made by me :P better visibility on black and white surfaces)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6790 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Main.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/Main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp index 162dbd452d..8a24201943 100644 --- a/plugins/SendScreenshotPlus/src/Main.cpp +++ b/plugins/SendScreenshotPlus/src/Main.cpp @@ -85,6 +85,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda * Initializes the services provided and the link to those needed * Called when the plugin is loaded into Miranda */ +ATOM g_clsTargetHighlighter=0; HANDLE g_hookModulesLoaded=0; HANDLE g_hookSystemPreShutdown=0; extern "C" __declspec(dllexport) int Load(void) @@ -105,7 +106,9 @@ extern "C" __declspec(dllexport) int Load(void) AddMenuItems(); RegisterServices(); - + HBRUSH brush=CreateSolidBrush(0x0000FF00);//owned by class + WNDCLASS wndclass={CS_HREDRAW|CS_VREDRAW,DefWindowProc,0,0,hInst,NULL,NULL,brush,NULL,L"SendSSHighlighter"}; + g_clsTargetHighlighter=RegisterClass(&wndclass); return 0; } @@ -140,6 +143,7 @@ extern "C" __declspec(dllexport) int Unload(void) UnRegisterServices(); if(g_hookModulesLoaded) UnhookEvent(g_hookModulesLoaded),g_hookModulesLoaded=0; if(g_hookSystemPreShutdown) UnhookEvent(g_hookSystemPreShutdown),g_hookSystemPreShutdown=0; + if(g_clsTargetHighlighter) UnregisterClass((LPTSTR)g_clsTargetHighlighter,hInst),g_clsTargetHighlighter=0; return 0; } |