blob: 84ebf91100356552437313a5204471ad699b73dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include <newpluginapi.h>
#include <m_clist.h>
#include <m_clui.h>
#include <m_message.h>
#include <m_system.h>
#include <m_options.h>
#include <m_database.h>
#include <m_langpack.h>
#include <m_MagneticWindows.h>
#include "SnapToListService.h"
#include "Options.h"
#include "resource.h"
#include "Version.h"
typedef
struct TDockingWindow {
HWND hWnd;
WNDPROC OldWindowProc;
TDockingWindow* Next;
} TDockingWindow, *PDockingWindow;
typedef
struct TRectList {
RECT Rect;
TRectList* Next;
} TRectList, *PRectList;
typedef
struct {
PDockingWindow WindowList;
PRectList Rects;
int MouseX, MouseY;
bool SnappedX, SnappedY;
} TWorkingVariables;
#define MODULE_NAME "MagneticWindows"
extern HINSTANCE hInst;
bool WindowOpen(HWND);
bool WindowClose(HWND);
bool WindowCloseAll();
|