diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-10-09 05:20:49 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-10-09 05:20:49 +0000 |
commit | faf1e494a31b70203aa67d34602f5256eabe0336 (patch) | |
tree | b222ebe08c9173c1ba2811bcad4f47369d0e4f38 /include/delphi/reserve/m_magneticWindows.inc | |
parent | 302209a17a9f5342a377904cda699fd3833bbe9a (diff) |
Test commit:
delphi headers structure as c headers structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1829 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi/reserve/m_magneticWindows.inc')
-rw-r--r-- | include/delphi/reserve/m_magneticWindows.inc | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/include/delphi/reserve/m_magneticWindows.inc b/include/delphi/reserve/m_magneticWindows.inc deleted file mode 100644 index 885760f629..0000000000 --- a/include/delphi/reserve/m_magneticWindows.inc +++ /dev/null @@ -1,72 +0,0 @@ -{$IFNDEF M_MAGNETICWINDOWS}
-{$DEFINE M_MAGNETICWINDOWS}
-
-const
-// For other Plugins to start snapping for their windows
-// wparam: hwnd of window
-// lparam: 0
-// return: 0 on success, 1 on error
- MS_MW_ADDWINDOW = 'Utils/MagneticWindows/Add';
-
-// For other Plugins to stop snapping for their windows
-// wparam: hwnd of window
-// lparam: 0
-// return: 0 on success, 1 on error
- MS_MW_REMWINDOW = 'Utils/MagneticWindows/Rem';
-
-//decide where to align on the list:
- MS_MW_STL_List_Left = $00000001; //Snaps the window to the left border of the list
- MS_MW_STL_List_Top = $00000002; //Snaps the window to the top border of the list
- MS_MW_STL_List_Right = $00000004; //Snaps the window to the right border of the list
- MS_MW_STL_List_Bottom = $00000008; //Snaps the window to the bottom border of the list
-//decide with what side (of the window you want to snap) to snap to the list
- MS_MW_STL_Wnd_Left = $00000010; //Snaps the window with the left border to the left/right side of the list
- MS_MW_STL_Wnd_Top = $00000020; //Snaps the window with the top border to the top/bottom side of the list
- MS_MW_STL_Wnd_Right = $00000040; //Snaps the window with the right border to the left/right side of the list
- MS_MW_STL_Wnd_Bottom = $00000080; //Snaps the window with the bottom border to the top/bottom side of the list
-
- MS_MW_STL_Wnd_FullWidth = (MS_MW_STL_Wnd_Left or MS_MW_STL_Wnd_Right);
- //Snaps to the top/bottom of the list and spans over the full width
-
- MS_MW_STL_Wnd_FullHeight = (MS_MW_STL_Wnd_Top or MS_MW_STL_Wnd_Bottom);
- //Snaps to the left/right of the list and spans over the full height
-
-// to place the window in the list combine f.e.
-// MS_MW_STL_List_Left | MS_MW_STL_Wnd_Right | *vetical alignment*
-
-//For other Plugins to snap a window to the list for other Plugins
-// wparam: hwnd of window
-// lparam: combination of the above constants MS_MW_STL_*
-// return: 0 on success, 1 on error
- MS_MW_SNAPTOLIST = 'Utils/MagneticWindows/SnapToList';
-
-// Helper functions
-{$IFNDEF MW_NO_HELPPER_FUNCTIONS}
-
-function MagneticWindows_AddWindow(hWnd:HWND):integer;
-begin
- if ServiceExists(MS_MW_ADDWINDOW)<>0 then
- result:=CallService(MS_MW_ADDWINDOW,hWnd,0);
- else
- result:=-1;
-end;
-
-function MagneticWindows_RemoveWindow(hWnd:HWND):integer;
-begin
- if ServiceExists(MS_MW_REMWINDOW)<>0 then
- result:=CallService(MS_MW_REMWINDOW,hWnd,0);
- else
- result:=-1;
-end;
-
-function MagneticWindows_SnapWindowToList(hWnd:HWND;MS_MW_STL_Options:integer):integer;
-begin
- if (ServiceExists(MS_MW_SNAPTOLIST))
- result:=CallService(MS_MW_SNAPTOLIST,hWnd,MS_MW_STL_Options);
- else
- result:=-1;
-end;
-
-{$ENDIF}
-
-{$ENDIF}
|