diff options
Diffstat (limited to 'src/modules/utils/windowlist.cpp')
-rw-r--r-- | src/modules/utils/windowlist.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/modules/utils/windowlist.cpp b/src/modules/utils/windowlist.cpp index e67f13c5e8..059d3dd1d7 100644 --- a/src/modules/utils/windowlist.cpp +++ b/src/modules/utils/windowlist.cpp @@ -2,7 +2,7 @@ Miranda IM: the free IM client for Microsoft* Windows*
-Copyright 2000-2009 Miranda ICQ/IM project,
+Copyright 2000-2009 Miranda ICQ/IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
@@ -11,7 +11,7 @@ modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
-This program is distributed in the hope that it will be useful,
+This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@@ -33,24 +33,24 @@ static INT_PTR AllocWindowList(WPARAM, LPARAM) static INT_PTR AddToWindowList(WPARAM, LPARAM lParam)
{
- windowList=(WINDOWLISTENTRY*)mir_realloc(windowList,sizeof(WINDOWLISTENTRY)*(windowListCount+1));
+ windowList=(WINDOWLISTENTRY*)mir_realloc(windowList, sizeof(WINDOWLISTENTRY)*(windowListCount+1));
windowList[windowListCount++]=*(WINDOWLISTENTRY*)lParam;
return 0;
}
-static INT_PTR RemoveFromWindowList(WPARAM wParam,LPARAM lParam)
+static INT_PTR RemoveFromWindowList(WPARAM wParam, LPARAM lParam)
{
int i;
for (i=0;i<windowListCount;i++)
if (windowList[i].hwnd == (HWND)lParam && windowList[i].hList == (HANDLE)wParam) {
- MoveMemory(&windowList[i],&windowList[i+1],sizeof(WINDOWLISTENTRY)*(windowListCount-i-1));
+ MoveMemory(&windowList[i], &windowList[i+1], sizeof(WINDOWLISTENTRY)*(windowListCount-i-1));
windowListCount--;
return 0;
}
return 1;
}
-static INT_PTR FindInWindowList(WPARAM wParam,LPARAM lParam)
+static INT_PTR FindInWindowList(WPARAM wParam, LPARAM lParam)
{
int i;
for (i=0;i<windowListCount;i++)
@@ -59,34 +59,34 @@ static INT_PTR FindInWindowList(WPARAM wParam,LPARAM lParam) return (INT_PTR)(HWND)NULL;
}
-static INT_PTR BroadcastToWindowList(WPARAM wParam,LPARAM lParam)
+static INT_PTR BroadcastToWindowList(WPARAM wParam, LPARAM lParam)
{
int i;
MSG *msg=(MSG*)lParam;
for (i=0;i<windowListCount;i++)
if (windowList[i].hList == (HANDLE)wParam)
- SendMessage(windowList[i].hwnd,msg->message,msg->wParam,msg->lParam);
+ SendMessage(windowList[i].hwnd, msg->message, msg->wParam, msg->lParam);
return 0;
}
-static INT_PTR BroadcastToWindowListAsync(WPARAM wParam,LPARAM lParam)
+static INT_PTR BroadcastToWindowListAsync(WPARAM wParam, LPARAM lParam)
{
int i;
MSG *msg=(MSG*)lParam;
for (i=0;i<windowListCount;i++)
if (windowList[i].hList == (HANDLE)wParam)
- PostMessage(windowList[i].hwnd,msg->message,msg->wParam,msg->lParam);
+ PostMessage(windowList[i].hwnd, msg->message, msg->wParam, msg->lParam);
return 0;
}
int InitWindowList(void)
{
- CreateServiceFunction(MS_UTILS_ALLOCWINDOWLIST,AllocWindowList);
- CreateServiceFunction(MS_UTILS_ADDTOWINDOWLIST,AddToWindowList);
- CreateServiceFunction(MS_UTILS_REMOVEFROMWINDOWLIST,RemoveFromWindowList);
- CreateServiceFunction(MS_UTILS_BROADCASTTOWINDOWLIST,BroadcastToWindowList);
- CreateServiceFunction(MS_UTILS_BROADCASTTOWINDOWLIST_ASYNC,BroadcastToWindowListAsync);
- CreateServiceFunction(MS_UTILS_FINDWINDOWINLIST,FindInWindowList);
+ CreateServiceFunction(MS_UTILS_ALLOCWINDOWLIST, AllocWindowList);
+ CreateServiceFunction(MS_UTILS_ADDTOWINDOWLIST, AddToWindowList);
+ CreateServiceFunction(MS_UTILS_REMOVEFROMWINDOWLIST, RemoveFromWindowList);
+ CreateServiceFunction(MS_UTILS_BROADCASTTOWINDOWLIST, BroadcastToWindowList);
+ CreateServiceFunction(MS_UTILS_BROADCASTTOWINDOWLIST_ASYNC, BroadcastToWindowListAsync);
+ CreateServiceFunction(MS_UTILS_FINDWINDOWINLIST, FindInWindowList);
return 0;
}
|