2009-05-12 14:15:48 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: PAINT for ReactOS
|
|
|
|
* LICENSE: LGPL
|
2009-10-21 15:44:31 +00:00
|
|
|
* FILE: base/applications/paint/selection.c
|
2009-05-12 14:15:48 +00:00
|
|
|
* PURPOSE: Window procedure of the selection window
|
|
|
|
* PROGRAMMERS: Benedikt Freisen
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES *********************************************************/
|
|
|
|
|
2011-07-26 21:44:53 +00:00
|
|
|
#include "precomp.h"
|
2009-05-12 14:15:48 +00:00
|
|
|
|
2014-02-08 17:49:24 +00:00
|
|
|
/* DEFINES **********************************************************/
|
|
|
|
|
|
|
|
#define ACTION_MOVE 0
|
|
|
|
#define ACTION_RESIZE_TOP_LEFT 1
|
|
|
|
#define ACTION_RESIZE_TOP 2
|
|
|
|
#define ACTION_RESIZE_TOP_RIGHT 3
|
|
|
|
#define ACTION_RESIZE_LEFT 4
|
|
|
|
#define ACTION_RESIZE_RIGHT 5
|
|
|
|
#define ACTION_RESIZE_BOTTOM_LEFT 6
|
|
|
|
#define ACTION_RESIZE_BOTTOM 7
|
|
|
|
#define ACTION_RESIZE_BOTTOM_RIGHT 8
|
|
|
|
|
2009-05-12 14:15:48 +00:00
|
|
|
/* FUNCTIONS ********************************************************/
|
|
|
|
|
2014-02-08 17:49:24 +00:00
|
|
|
LPCTSTR cursors[9] = { /* action to mouse cursor lookup table */
|
|
|
|
IDC_SIZEALL,
|
|
|
|
|
|
|
|
IDC_SIZENWSE, IDC_SIZENS, IDC_SIZENESW,
|
|
|
|
IDC_SIZEWE, IDC_SIZEWE,
|
|
|
|
IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE
|
2010-01-16 23:21:45 +00:00
|
|
|
};
|
|
|
|
|
2009-05-12 14:15:48 +00:00
|
|
|
BOOL moving = FALSE;
|
2014-02-08 17:49:24 +00:00
|
|
|
int action = ACTION_MOVE;
|
2014-02-07 17:54:25 +00:00
|
|
|
POINTS pos;
|
|
|
|
POINTS frac;
|
2014-02-08 15:32:51 +00:00
|
|
|
POINT delta;
|
2014-02-07 17:54:25 +00:00
|
|
|
|
2014-02-11 11:48:15 +00:00
|
|
|
void
|
|
|
|
RegisterWclSelection()
|
|
|
|
{
|
|
|
|
WNDCLASSEX wclSelection;
|
|
|
|
/* initializing and registering the window class for the selection frame */
|
|
|
|
wclSelection.hInstance = hProgInstance;
|
|
|
|
wclSelection.lpszClassName = _T("Selection");
|
|
|
|
wclSelection.lpfnWndProc = SelectionWinProc;
|
|
|
|
wclSelection.style = CS_DBLCLKS;
|
|
|
|
wclSelection.cbSize = sizeof(WNDCLASSEX);
|
|
|
|
wclSelection.hIcon = NULL;
|
|
|
|
wclSelection.hIconSm = NULL;
|
|
|
|
wclSelection.hCursor = LoadCursor(NULL, IDC_SIZEALL);
|
|
|
|
wclSelection.lpszMenuName = NULL;
|
|
|
|
wclSelection.cbClsExtra = 0;
|
|
|
|
wclSelection.cbWndExtra = 0;
|
|
|
|
wclSelection.hbrBackground = NULL;
|
|
|
|
RegisterClassEx (&wclSelection);
|
|
|
|
}
|
|
|
|
|
2014-02-07 17:54:25 +00:00
|
|
|
BOOL
|
|
|
|
ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, HBITMAP hbmMask, int xMask, int yMask, DWORD dwRop, COLORREF keyColor)
|
|
|
|
{
|
|
|
|
HDC hTempDC;
|
|
|
|
HDC hTempDC2;
|
|
|
|
HBITMAP hTempBm;
|
|
|
|
HBRUSH hTempBrush;
|
|
|
|
HBITMAP hTempMask;
|
|
|
|
|
|
|
|
hTempDC = CreateCompatibleDC(hdcSrc);
|
|
|
|
hTempDC2 = CreateCompatibleDC(hdcSrc);
|
|
|
|
hTempBm = CreateCompatibleBitmap(hTempDC, nWidth, nHeight);
|
|
|
|
SelectObject(hTempDC, hTempBm);
|
|
|
|
hTempBrush = CreateSolidBrush(keyColor);
|
|
|
|
SelectObject(hTempDC, hTempBrush);
|
|
|
|
BitBlt(hTempDC, 0, 0, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, SRCCOPY);
|
|
|
|
PatBlt(hTempDC, 0, 0, nWidth, nHeight, PATINVERT);
|
|
|
|
hTempMask = CreateBitmap(nWidth, nHeight, 1, 1, NULL);
|
|
|
|
SelectObject(hTempDC2, hTempMask);
|
|
|
|
BitBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC, 0, 0, SRCCOPY);
|
|
|
|
SelectObject(hTempDC, hbmMask);
|
|
|
|
BitBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC, xMask, yMask, SRCAND);
|
|
|
|
MaskBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, hTempMask, xMask, yMask, dwRop);
|
|
|
|
DeleteDC(hTempDC);
|
|
|
|
DeleteDC(hTempDC2);
|
|
|
|
DeleteObject(hTempBm);
|
|
|
|
DeleteObject(hTempBrush);
|
|
|
|
DeleteObject(hTempMask);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ForceRefreshSelectionContents()
|
|
|
|
{
|
|
|
|
if (IsWindowVisible(hSelection))
|
|
|
|
{
|
|
|
|
SendMessage(hSelection, WM_LBUTTONDOWN, 0, MAKELPARAM(0, 0));
|
|
|
|
SendMessage(hSelection, WM_MOUSEMOVE, 0, MAKELPARAM(0, 0));
|
|
|
|
SendMessage(hSelection, WM_LBUTTONUP, 0, MAKELPARAM(0, 0));
|
|
|
|
}
|
|
|
|
}
|
2010-01-16 23:21:45 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
identifyCorner(short x, short y, short w, short h)
|
|
|
|
{
|
|
|
|
if (y < 3)
|
|
|
|
{
|
|
|
|
if (x < 3)
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_TOP_LEFT;
|
2010-01-16 23:21:45 +00:00
|
|
|
if ((x < w / 2 + 2) && (x >= w / 2 - 1))
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_TOP;
|
2010-01-16 23:21:45 +00:00
|
|
|
if (x >= w - 3)
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_TOP_RIGHT;
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
|
|
|
if ((y < h / 2 + 2) && (y >= h / 2 - 1))
|
|
|
|
{
|
|
|
|
if (x < 3)
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_LEFT;
|
2010-01-16 23:21:45 +00:00
|
|
|
if (x >= w - 3)
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_RIGHT;
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
|
|
|
if (y >= h - 3)
|
|
|
|
{
|
|
|
|
if (x < 3)
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_BOTTOM_LEFT;
|
2010-01-16 23:21:45 +00:00
|
|
|
if ((x < w / 2 + 2) && (x >= w / 2 - 1))
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_BOTTOM;
|
2010-01-16 23:21:45 +00:00
|
|
|
if (x >= w - 3)
|
2014-02-08 17:49:24 +00:00
|
|
|
return ACTION_RESIZE_BOTTOM_RIGHT;
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2009-05-12 14:15:48 +00:00
|
|
|
|
2009-10-21 15:44:31 +00:00
|
|
|
LRESULT CALLBACK
|
|
|
|
SelectionWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
2009-05-12 14:15:48 +00:00
|
|
|
{
|
|
|
|
switch (message)
|
|
|
|
{
|
|
|
|
case WM_PAINT:
|
2009-10-21 15:44:31 +00:00
|
|
|
{
|
|
|
|
if (!moving)
|
2009-05-12 14:15:48 +00:00
|
|
|
{
|
2009-10-21 15:44:31 +00:00
|
|
|
HDC hDC = GetDC(hwnd);
|
|
|
|
DefWindowProc(hwnd, message, wParam, lParam);
|
2014-02-07 17:54:25 +00:00
|
|
|
SelectionFrame(hDC, 1, 1, RECT_WIDTH(rectSel_dest) * zoom / 1000 + 5,
|
|
|
|
RECT_HEIGHT(rectSel_dest) * zoom / 1000 + 5);
|
2009-10-21 15:44:31 +00:00
|
|
|
ReleaseDC(hwnd, hDC);
|
2009-05-12 14:15:48 +00:00
|
|
|
}
|
|
|
|
break;
|
2009-10-21 15:44:31 +00:00
|
|
|
}
|
2009-05-12 14:15:48 +00:00
|
|
|
case WM_LBUTTONDOWN:
|
2014-02-07 17:54:25 +00:00
|
|
|
pos.x = GET_X_LPARAM(lParam);
|
|
|
|
pos.y = GET_Y_LPARAM(lParam);
|
2014-02-08 15:32:51 +00:00
|
|
|
delta.x = 0;
|
|
|
|
delta.y = 0;
|
2009-05-12 14:15:48 +00:00
|
|
|
SetCapture(hwnd);
|
2014-02-08 17:49:24 +00:00
|
|
|
if (action != ACTION_MOVE)
|
2010-01-16 23:21:45 +00:00
|
|
|
SetCursor(LoadCursor(NULL, cursors[action]));
|
2009-05-12 14:15:48 +00:00
|
|
|
moving = TRUE;
|
2014-02-08 17:49:24 +00:00
|
|
|
InvalidateRect(hScrlClient, NULL, TRUE);
|
2009-05-12 14:15:48 +00:00
|
|
|
break;
|
|
|
|
case WM_MOUSEMOVE:
|
|
|
|
if (moving)
|
|
|
|
{
|
2010-10-10 09:57:44 +00:00
|
|
|
TCHAR sizeStr[100];
|
2014-02-08 15:32:51 +00:00
|
|
|
POINT deltaUsed;
|
2009-05-12 14:15:48 +00:00
|
|
|
resetToU1();
|
2014-02-07 17:54:25 +00:00
|
|
|
frac.x += GET_X_LPARAM(lParam) - pos.x;
|
|
|
|
frac.y += GET_Y_LPARAM(lParam) - pos.y;
|
2014-02-08 15:32:51 +00:00
|
|
|
delta.x += frac.x * 1000 / zoom;
|
|
|
|
delta.y += frac.y * 1000 / zoom;
|
2010-01-16 23:21:45 +00:00
|
|
|
if (zoom < 1000)
|
|
|
|
{
|
2014-02-07 17:54:25 +00:00
|
|
|
frac.x = 0;
|
|
|
|
frac.y = 0;
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-02-07 17:54:25 +00:00
|
|
|
frac.x -= (frac.x * 1000 / zoom) * zoom / 1000;
|
|
|
|
frac.y -= (frac.y * 1000 / zoom) * zoom / 1000;
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
|
|
|
switch (action)
|
|
|
|
{
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_MOVE: /* move selection */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = delta.x;
|
|
|
|
deltaUsed.y = delta.y;
|
|
|
|
OffsetRect(&rectSel_dest, deltaUsed.x, deltaUsed.y);
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_TOP_LEFT: /* resize at upper left corner */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = min(delta.x, RECT_WIDTH(rectSel_dest) - 1);
|
|
|
|
deltaUsed.y = min(delta.y, RECT_HEIGHT(rectSel_dest) - 1);
|
|
|
|
rectSel_dest.left += deltaUsed.x;
|
|
|
|
rectSel_dest.top += deltaUsed.y;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_TOP: /* resize at top edge */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = delta.x;
|
|
|
|
deltaUsed.y = min(delta.y, RECT_HEIGHT(rectSel_dest) - 1);
|
|
|
|
rectSel_dest.top += deltaUsed.y;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_TOP_RIGHT: /* resize at upper right corner */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = max(delta.x, -(RECT_WIDTH(rectSel_dest) - 1));
|
|
|
|
deltaUsed.y = min(delta.y, RECT_HEIGHT(rectSel_dest) - 1);
|
|
|
|
rectSel_dest.top += deltaUsed.y;
|
|
|
|
rectSel_dest.right += deltaUsed.x;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_LEFT: /* resize at left edge */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = min(delta.x, RECT_WIDTH(rectSel_dest) - 1);
|
|
|
|
deltaUsed.y = delta.y;
|
|
|
|
rectSel_dest.left += deltaUsed.x;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_RIGHT: /* resize at right edge */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = max(delta.x, -(RECT_WIDTH(rectSel_dest) - 1));
|
|
|
|
deltaUsed.y = delta.y;
|
|
|
|
rectSel_dest.right += deltaUsed.x;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_BOTTOM_LEFT: /* resize at lower left corner */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = min(delta.x, RECT_WIDTH(rectSel_dest) - 1);
|
|
|
|
deltaUsed.y = max(delta.y, -(RECT_HEIGHT(rectSel_dest) - 1));
|
|
|
|
rectSel_dest.left += deltaUsed.x;
|
|
|
|
rectSel_dest.bottom += deltaUsed.y;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_BOTTOM: /* resize at bottom edge */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = delta.x;
|
|
|
|
deltaUsed.y = max(delta.y, -(RECT_HEIGHT(rectSel_dest) - 1));
|
|
|
|
rectSel_dest.bottom += deltaUsed.y;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
2014-02-08 17:49:24 +00:00
|
|
|
case ACTION_RESIZE_BOTTOM_RIGHT: /* resize at lower right corner */
|
2014-02-08 15:32:51 +00:00
|
|
|
deltaUsed.x = max(delta.x, -(RECT_WIDTH(rectSel_dest) - 1));
|
|
|
|
deltaUsed.y = max(delta.y, -(RECT_HEIGHT(rectSel_dest) - 1));
|
|
|
|
rectSel_dest.right += deltaUsed.x;
|
|
|
|
rectSel_dest.bottom += deltaUsed.y;
|
2010-01-16 23:21:45 +00:00
|
|
|
break;
|
|
|
|
}
|
2014-02-08 15:32:51 +00:00
|
|
|
delta.x -= deltaUsed.x;
|
|
|
|
delta.y -= deltaUsed.y;
|
2009-10-21 15:44:31 +00:00
|
|
|
|
2014-02-07 17:54:25 +00:00
|
|
|
_stprintf(sizeStr, _T("%d x %d"), RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest));
|
2010-10-10 09:57:44 +00:00
|
|
|
SendMessage(hStatusBar, SB_SETTEXT, 2, (LPARAM) sizeStr);
|
|
|
|
|
2014-02-08 17:49:24 +00:00
|
|
|
if (activeTool == TOOL_TEXT)
|
2014-02-07 17:54:25 +00:00
|
|
|
{
|
|
|
|
Text(hDrawingDC, rectSel_dest.left, rectSel_dest.top, rectSel_dest.right, rectSel_dest.bottom, fgColor, bgColor, textToolText, hfontTextFont, transpBg);
|
|
|
|
}
|
2009-05-12 14:15:48 +00:00
|
|
|
else
|
2010-01-16 23:21:45 +00:00
|
|
|
{
|
2014-02-08 17:49:24 +00:00
|
|
|
if (action != ACTION_MOVE)
|
2014-02-07 17:54:25 +00:00
|
|
|
StretchBlt(hDrawingDC, rectSel_dest.left, rectSel_dest.top, RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest), hSelDC, 0, 0, GetDIBWidth(hSelBm), GetDIBHeight(hSelBm), SRCCOPY);
|
|
|
|
else
|
|
|
|
if (transpBg == 0)
|
|
|
|
MaskBlt(hDrawingDC, rectSel_dest.left, rectSel_dest.top, RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest),
|
|
|
|
hSelDC, 0, 0, hSelMask, 0, 0, MAKEROP4(SRCCOPY, SRCAND));
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ColorKeyedMaskBlt(hDrawingDC, rectSel_dest.left, rectSel_dest.top, RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest),
|
|
|
|
hSelDC, 0, 0, hSelMask, 0, 0, MAKEROP4(SRCCOPY, SRCAND), bgColor);
|
|
|
|
}
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
2013-09-01 20:13:15 +00:00
|
|
|
InvalidateRect(hImageArea, NULL, FALSE);
|
2014-02-07 17:54:25 +00:00
|
|
|
pos.x = GET_X_LPARAM(lParam);
|
|
|
|
pos.y = GET_Y_LPARAM(lParam);
|
2009-05-12 14:15:48 +00:00
|
|
|
}
|
2010-01-16 23:21:45 +00:00
|
|
|
else
|
|
|
|
{
|
2014-02-07 17:54:25 +00:00
|
|
|
int w = RECT_WIDTH(rectSel_dest) * zoom / 1000 + 6;
|
|
|
|
int h = RECT_HEIGHT(rectSel_dest) * zoom / 1000 + 6;
|
|
|
|
pos.x = GET_X_LPARAM(lParam);
|
|
|
|
pos.y = GET_Y_LPARAM(lParam);
|
2010-10-10 09:57:44 +00:00
|
|
|
SendMessage(hStatusBar, SB_SETTEXT, 2, (LPARAM) NULL);
|
2014-02-07 17:54:25 +00:00
|
|
|
action = identifyCorner(pos.x, pos.y, w, h);
|
2014-02-08 17:49:24 +00:00
|
|
|
if (action != ACTION_MOVE)
|
2010-01-16 23:21:45 +00:00
|
|
|
SetCursor(LoadCursor(NULL, cursors[action]));
|
|
|
|
}
|
2009-05-12 14:15:48 +00:00
|
|
|
break;
|
|
|
|
case WM_LBUTTONUP:
|
|
|
|
if (moving)
|
|
|
|
{
|
|
|
|
moving = FALSE;
|
|
|
|
ReleaseCapture();
|
2014-02-08 17:49:24 +00:00
|
|
|
if (action != ACTION_MOVE)
|
2010-01-16 23:21:45 +00:00
|
|
|
{
|
2014-02-08 17:49:24 +00:00
|
|
|
if (activeTool == TOOL_TEXT)
|
2014-02-07 17:54:25 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
HDC hTempDC;
|
|
|
|
HBITMAP hTempBm;
|
|
|
|
hTempDC = CreateCompatibleDC(hSelDC);
|
|
|
|
hTempBm = CreateDIBWithProperties(RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest));
|
|
|
|
SelectObject(hTempDC, hTempBm);
|
|
|
|
SelectObject(hSelDC, hSelBm);
|
|
|
|
StretchBlt(hTempDC, 0, 0, RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest), hSelDC, 0, 0,
|
|
|
|
GetDIBWidth(hSelBm), GetDIBHeight(hSelBm), SRCCOPY);
|
|
|
|
DeleteObject(hSelBm);
|
|
|
|
hSelBm = hTempBm;
|
|
|
|
hTempBm = CreateBitmap(RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest), 1, 1, NULL);
|
|
|
|
SelectObject(hTempDC, hTempBm);
|
|
|
|
SelectObject(hSelDC, hSelMask);
|
|
|
|
StretchBlt(hTempDC, 0, 0, RECT_WIDTH(rectSel_dest), RECT_HEIGHT(rectSel_dest), hSelDC, 0, 0,
|
|
|
|
GetDIBWidth(hSelMask), GetDIBHeight(hSelMask), SRCCOPY);
|
|
|
|
DeleteObject(hSelMask);
|
|
|
|
hSelMask = hTempBm;
|
|
|
|
SelectObject(hSelDC, hSelBm);
|
|
|
|
DeleteDC(hTempDC);
|
|
|
|
}
|
2010-01-16 23:21:45 +00:00
|
|
|
}
|
2009-05-12 14:15:48 +00:00
|
|
|
placeSelWin();
|
|
|
|
ShowWindow(hSelection, SW_HIDE);
|
|
|
|
ShowWindow(hSelection, SW_SHOW);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
2009-10-21 15:44:31 +00:00
|
|
|
return DefWindowProc(hwnd, message, wParam, lParam);
|
2009-05-12 14:15:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|