summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/popup_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-01 12:56:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-01 12:56:22 +0000
commit70e0c09fcffa5520d3cfdc4708c81248b135c796 (patch)
tree6d000d835ddf3c890d1d23a7f946fd62111f8497 /plugins/Popup/src/popup_thread.cpp
parent4a58d85d8dd5f120eb0d0c429e0b46cdeb25c629 (diff)
- more warning fixes;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@11191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/popup_thread.cpp')
-rw-r--r--plugins/Popup/src/popup_thread.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/Popup/src/popup_thread.cpp b/plugins/Popup/src/popup_thread.cpp
index 2c34d7e610..d4eec8539a 100644
--- a/plugins/Popup/src/popup_thread.cpp
+++ b/plugins/Popup/src/popup_thread.cpp
@@ -23,9 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "headers.h"
#include <process.h>
-//#include <list>
-// globals
+// globals
static int gIdleRequests = 0;
static bool gTerminating = false;
static HWND gHwndManager = 0;
@@ -35,10 +34,10 @@ static HANDLE hThread = 0;
static LIST<PopupWnd2> popupList(3);
-// forwards
+// forwards
enum
{
- // message id's
+ // message id's
UTM_PT_FIRST = WM_USER+1607,
UTM_STOP_THREAD,
UTM_ADD_WINDOW,
@@ -62,15 +61,15 @@ bool UpdatePopupPosition(PopupWnd2 *prev, PopupWnd2 *wnd)
if (prev)
prevSize = prev->getSize();
- //we have only one monitor (cant check it together with 1.if)
+ // we have only one monitor (cant check it together with 1.if)
RECT rc;
if ( GetSystemMetrics(SM_CMONITORS) == 1)
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, 0);
- else { //Multimonitor stuff (we have more then 1)
+ else { // Multimonitor stuff (we have more then 1)
HWND hWnd;
if (PopupOptions.Monitor == MN_MIRANDA)
hWnd = (HWND)CallService(MS_CLUI_GETHWND,0,0);
- else // PopupOptions.Monitor == MN_ACTIVE
+ else // PopupOptions.Monitor == MN_ACTIVE
hWnd = GetForegroundWindow();
HMONITOR hMonitor = MonitorFromWindow(hWnd, MONITOR_DEFAULTTOPRIMARY);
@@ -202,10 +201,10 @@ static LRESULT CALLBACK PopupThreadManagerWndProc(HWND hwnd, UINT message, WPARA
return DefWindowProc(hwnd, message, wParam, lParam);
}
-// thread func
+// thread func
static unsigned __stdcall PopupThread(void *arg)
{
- // Create manager window
+ // Create manager window
DWORD err;
WNDCLASSEX wcl;
wcl.cbSize = sizeof(wcl);
@@ -257,7 +256,7 @@ void StopPopupThread()
void UnloadPopupThread()
{
- // We won't waint for thread to exit, Miranda's thread unsind mechanism will do that for us.
+ // We won't waint for thread to exit, Miranda's thread unsind mechanism will do that for us.
WaitForSingleObject(hThread, INFINITE);
CloseHandle(hThread);