summaryrefslogtreecommitdiff
path: root/plugins/AsSingleWindow/src/WindowsManager.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-26 16:24:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-26 16:25:03 +0300
commit2d469bf7d00fd198097fee6a1f672ee7c8cc7a9a (patch)
tree3193291755a19c006bc83ac427e02907a49ec7f3 /plugins/AsSingleWindow/src/WindowsManager.h
parentb8af15fcafc9fa8b5a75fd790b93fd3f0ed5cb7e (diff)
AsSingleWindow:
- fix for a crash on dynamic unload; - major code cleaning
Diffstat (limited to 'plugins/AsSingleWindow/src/WindowsManager.h')
-rw-r--r--plugins/AsSingleWindow/src/WindowsManager.h43
1 files changed, 21 insertions, 22 deletions
diff --git a/plugins/AsSingleWindow/src/WindowsManager.h b/plugins/AsSingleWindow/src/WindowsManager.h
index a93f33678c..b3e7e5297f 100644
--- a/plugins/AsSingleWindow/src/WindowsManager.h
+++ b/plugins/AsSingleWindow/src/WindowsManager.h
@@ -2,32 +2,34 @@
#include "stdafx.h"
-enum WindowState {
- WINDOW_STATE_NORMAL,
- WINDOW_STATE_MINIMIZED,
- WINDOW_STATE_MAXIMIZED,
- WINDOW_STATE_HIDDEN,
- WINDOW_STATE_CLOSED, // not used ?
+enum WindowState
+{
+ WINDOW_STATE_NORMAL,
+ WINDOW_STATE_MINIMIZED,
+ WINDOW_STATE_MAXIMIZED,
+ WINDOW_STATE_HIDDEN,
+ WINDOW_STATE_CLOSED, // not used ?
};
-enum eWindowPosition {
- WINDOW_POSITION_LEFT = 1,
- WINDOW_POSITION_RIGHT = 2,
+enum eWindowPosition
+{
+ WINDOW_POSITION_LEFT = 1,
+ WINDOW_POSITION_RIGHT = 2,
};
-struct sWndCoords {
- LONG x, y, width, height;
+struct sWndCoords
+{
+ LONG x, y, width, height;
};
-struct sWindowInfo {
- HWND hWnd;
- WindowState eState;
- WNDPROC pPrevWndProc;
- RECT rLastSavedPosition;
+struct sWindowInfo
+{
+ HWND hWnd;
+ WindowState eState;
+ RECT rLastSavedPosition;
- void saveState();
- void saveRect();
- //void restoreRect();
+ void saveState();
+ void saveRect();
};
// critical section tools
@@ -37,10 +39,7 @@ bool pluginIsAlreadyRunning();
// system
sWindowInfo* windowFind(HWND);
-//windowsList::iterator windowFindItr(HWND);
-//windowsList::reverse_iterator windowFindRevItr(HWND);
void windowAdd(HWND, bool);
-//void windowRemove(HWND);
HWND windowGetRoot(HWND);
void windowListUpdate();
void windowReposition(HWND);