2001-02-14 22:49:22 +01:00
|
|
|
/*
|
|
|
|
* Digital video MCI Wine Driver
|
|
|
|
*
|
|
|
|
* Copyright 1999, 2000 Eric POUECH
|
2004-01-01 01:48:01 +01:00
|
|
|
* Copyright 2003 Dmitry Timoshkov
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-02-14 22:49:22 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include "private_mciavi.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2001-02-14 22:49:22 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mciavi);
|
2001-02-14 22:49:22 +01:00
|
|
|
|
|
|
|
static LRESULT WINAPI MCIAVI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
2007-05-24 16:41:17 +02:00
|
|
|
TRACE("hwnd=%p msg=%x wparam=%lx lparam=%lx\n", hWnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
switch (uMsg) {
|
|
|
|
case WM_CREATE:
|
2004-02-27 01:42:44 +01:00
|
|
|
SetWindowLongW(hWnd, 0, (LPARAM)((CREATESTRUCTW *)lParam)->lpCreateParams);
|
|
|
|
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
case WM_DESTROY:
|
2004-02-27 01:42:44 +01:00
|
|
|
MCIAVI_mciClose(GetWindowLongW(hWnd, 0), MCI_WAIT, NULL);
|
|
|
|
SetWindowLongW(hWnd, 0, 0);
|
|
|
|
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
case WM_ERASEBKGND:
|
|
|
|
{
|
|
|
|
RECT rect;
|
|
|
|
GetClientRect(hWnd, &rect);
|
|
|
|
FillRect((HDC)wParam, &rect, GetStockObject(BLACK_BRUSH));
|
|
|
|
}
|
2004-01-01 01:48:01 +01:00
|
|
|
return 1;
|
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
case WM_PAINT:
|
|
|
|
{
|
2004-02-27 01:42:44 +01:00
|
|
|
WINE_MCIAVI *wma = (WINE_MCIAVI *)mciGetDriverData(GetWindowLongW(hWnd, 0));
|
2004-01-01 01:48:01 +01:00
|
|
|
|
|
|
|
if (!wma)
|
2004-02-27 01:42:44 +01:00
|
|
|
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
2004-01-01 01:48:01 +01:00
|
|
|
|
|
|
|
EnterCriticalSection(&wma->cs);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
/* the animation isn't playing, don't paint */
|
|
|
|
if (wma->dwStatus == MCI_MODE_NOT_READY)
|
2004-01-01 01:48:01 +01:00
|
|
|
{
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
/* default paint handling */
|
2004-02-27 01:42:44 +01:00
|
|
|
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
2004-01-01 01:48:01 +01:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-01 01:48:01 +01:00
|
|
|
if (wParam)
|
2001-02-14 22:49:22 +01:00
|
|
|
MCIAVI_PaintFrame(wma, (HDC)wParam);
|
2004-01-01 01:48:01 +01:00
|
|
|
else
|
|
|
|
{
|
2001-02-14 22:49:22 +01:00
|
|
|
PAINTSTRUCT ps;
|
2004-03-02 00:38:25 +01:00
|
|
|
BeginPaint(hWnd, &ps);
|
|
|
|
MCIAVI_PaintFrame(wma, ps.hdc);
|
2001-02-14 22:49:22 +01:00
|
|
|
EndPaint(hWnd, &ps);
|
|
|
|
}
|
2004-01-01 01:48:01 +01:00
|
|
|
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
2004-01-01 01:48:01 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
default:
|
2004-02-27 01:42:44 +01:00
|
|
|
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-01-06 21:39:48 +01:00
|
|
|
BOOL MCIAVI_UnregisterClass(void)
|
2001-02-14 22:49:22 +01:00
|
|
|
{
|
2020-10-03 20:28:14 +02:00
|
|
|
return UnregisterClassW(L"MCIAVI", MCIAVI_hInstance);
|
2004-01-06 21:39:48 +01:00
|
|
|
}
|
2001-02-14 22:49:22 +01:00
|
|
|
|
2004-01-06 21:39:48 +01:00
|
|
|
BOOL MCIAVI_RegisterClass(void)
|
|
|
|
{
|
2004-02-27 01:42:44 +01:00
|
|
|
WNDCLASSW wndClass;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-02-27 01:42:44 +01:00
|
|
|
ZeroMemory(&wndClass, sizeof(WNDCLASSW));
|
2004-01-01 01:48:01 +01:00
|
|
|
wndClass.style = CS_DBLCLKS;
|
2004-02-27 01:42:44 +01:00
|
|
|
wndClass.lpfnWndProc = MCIAVI_WindowProc;
|
2004-01-01 01:48:01 +01:00
|
|
|
wndClass.cbWndExtra = sizeof(MCIDEVICEID);
|
|
|
|
wndClass.hInstance = MCIAVI_hInstance;
|
2004-02-27 01:42:44 +01:00
|
|
|
wndClass.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
|
|
|
|
wndClass.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
|
2020-10-03 20:28:14 +02:00
|
|
|
wndClass.lpszClassName = L"MCIAVI";
|
2004-02-27 01:42:44 +01:00
|
|
|
|
|
|
|
if (RegisterClassW(&wndClass)) return TRUE;
|
|
|
|
if (GetLastError() == ERROR_CLASS_ALREADY_EXISTS) return TRUE;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-02-27 01:42:44 +01:00
|
|
|
return FALSE;
|
2004-01-06 21:39:48 +01:00
|
|
|
}
|
|
|
|
|
2017-03-06 05:24:26 +01:00
|
|
|
BOOL MCIAVI_CreateWindow(WINE_MCIAVI* wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARMSW lpParms)
|
2004-01-06 21:39:48 +01:00
|
|
|
{
|
|
|
|
HWND hParent = 0;
|
|
|
|
DWORD dwStyle = WS_OVERLAPPEDWINDOW;
|
2005-02-09 23:26:25 +01:00
|
|
|
RECT rc;
|
2004-01-06 21:39:48 +01:00
|
|
|
|
|
|
|
/* what should be done ? */
|
|
|
|
if (wma->hWnd) return TRUE;
|
2001-02-14 22:49:22 +01:00
|
|
|
|
2017-03-06 05:24:26 +01:00
|
|
|
if (dwFlags & MCI_DGV_OPEN_PARENT) hParent = lpParms->hWndParent;
|
|
|
|
if (dwFlags & MCI_DGV_OPEN_WS) dwStyle = lpParms->dwStyle;
|
2001-02-14 22:49:22 +01:00
|
|
|
|
2016-06-29 09:54:30 +02:00
|
|
|
if (wma->hic)
|
|
|
|
SetRect(&rc, 0, 0, wma->outbih->biWidth, wma->outbih->biHeight);
|
|
|
|
else
|
|
|
|
SetRect(&rc, 0, 0, wma->inbih->biWidth, wma->inbih->biHeight);
|
|
|
|
|
2003-12-31 20:00:03 +01:00
|
|
|
AdjustWindowRect(&rc, dwStyle, FALSE);
|
2005-06-27 11:45:26 +02:00
|
|
|
if (!(dwStyle & (WS_CHILD|WS_POPUP))) /* overlapped window ? */
|
|
|
|
{
|
|
|
|
rc.right -= rc.left;
|
|
|
|
rc.bottom -= rc.top;
|
|
|
|
rc.left = rc.top = CW_USEDEFAULT;
|
|
|
|
}
|
2003-12-31 20:00:03 +01:00
|
|
|
|
2020-10-03 20:28:14 +02:00
|
|
|
wma->hWnd = CreateWindowW(L"MCIAVI", L"Wine MCI-AVI player", dwStyle, rc.left, rc.top,
|
|
|
|
rc.right, rc.bottom, hParent, 0, MCIAVI_hInstance,
|
2007-05-31 16:00:52 +02:00
|
|
|
ULongToPtr(wma->wDevID));
|
2003-12-31 20:00:03 +01:00
|
|
|
wma->hWndPaint = wma->hWnd;
|
2017-03-06 05:24:26 +01:00
|
|
|
|
|
|
|
TRACE("(%04x, %08X, %p, style %x, parent %p, dimensions %dx%d, hwnd %p)\n", wma->wDevID,
|
|
|
|
dwFlags, lpParms, dwStyle, hParent, rc.right - rc.left, rc.bottom - rc.top, wma->hWnd);
|
2007-05-31 16:00:52 +02:00
|
|
|
return wma->hWnd != 0;
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* MCIAVI_mciPut [internal]
|
|
|
|
*/
|
|
|
|
DWORD MCIAVI_mciPut(UINT wDevID, DWORD dwFlags, LPMCI_DGV_PUT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = MCIAVI_mciGetOpenDev(wDevID);
|
|
|
|
RECT rc;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2006-10-12 21:34:57 +02:00
|
|
|
TRACE("(%04x, %08X, %p)\n", wDevID, dwFlags, lpParms);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
2009-11-28 15:50:41 +01:00
|
|
|
if (dwFlags & MCI_TEST) return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-01 01:48:01 +01:00
|
|
|
EnterCriticalSection(&wma->cs);
|
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
if (dwFlags & MCI_DGV_RECT) {
|
2009-01-11 16:45:51 +01:00
|
|
|
/* In MCI, RECT structure is used differently: rc.right = width & rc.bottom = height
|
|
|
|
* So convert input MCI RECT into a normal RECT */
|
2016-06-29 09:54:30 +02:00
|
|
|
SetRect(&rc, lpParms->rc.left, lpParms->rc.top, lpParms->rc.left + lpParms->rc.right,
|
|
|
|
lpParms->rc.top + lpParms->rc.bottom);
|
2001-02-14 22:49:22 +01:00
|
|
|
} else {
|
2004-01-01 01:48:01 +01:00
|
|
|
GetClientRect(wma->hWndPaint, &rc);
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
if (dwFlags & MCI_DGV_PUT_CLIENT) {
|
2004-01-01 01:48:01 +01:00
|
|
|
FIXME("PUT_CLIENT %s\n", wine_dbgstr_rect(&rc));
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_DESTINATION) {
|
2004-01-01 01:48:01 +01:00
|
|
|
TRACE("PUT_DESTINATION %s\n", wine_dbgstr_rect(&rc));
|
|
|
|
wma->dest = rc;
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_FRAME) {
|
2004-01-01 01:48:01 +01:00
|
|
|
FIXME("PUT_FRAME %s\n", wine_dbgstr_rect(&rc));
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_SOURCE) {
|
2004-01-01 01:48:01 +01:00
|
|
|
TRACE("PUT_SOURCE %s\n", wine_dbgstr_rect(&rc));
|
|
|
|
wma->source = rc;
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_VIDEO) {
|
2004-01-01 01:48:01 +01:00
|
|
|
FIXME("PUT_VIDEO %s\n", wine_dbgstr_rect(&rc));
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_WINDOW) {
|
2009-01-02 12:17:10 +01:00
|
|
|
TRACE("PUT_WINDOW %s\n", wine_dbgstr_rect(&rc));
|
2009-01-11 16:45:51 +01:00
|
|
|
SetWindowPos(wma->hWndPaint, NULL, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, SWP_NOZORDER);
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
2004-01-01 01:48:01 +01:00
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* MCIAVI_mciWhere [internal]
|
|
|
|
*/
|
|
|
|
DWORD MCIAVI_mciWhere(UINT wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = MCIAVI_mciGetOpenDev(wDevID);
|
2009-01-11 16:45:51 +01:00
|
|
|
RECT rc;
|
2001-02-14 22:49:22 +01:00
|
|
|
|
2006-10-12 21:34:57 +02:00
|
|
|
TRACE("(%04x, %08x, %p)\n", wDevID, dwFlags, lpParms);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
2009-11-28 15:50:41 +01:00
|
|
|
/* Ignore MCI_TEST flag. */
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-01 01:48:01 +01:00
|
|
|
EnterCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_WHERE_DESTINATION) {
|
2004-03-16 04:09:14 +01:00
|
|
|
if (dwFlags & MCI_DGV_WHERE_MAX) {
|
2009-01-11 16:45:51 +01:00
|
|
|
GetClientRect(wma->hWndPaint, &rc);
|
|
|
|
TRACE("WHERE_DESTINATION_MAX %s\n", wine_dbgstr_rect(&rc));
|
2004-03-16 04:09:14 +01:00
|
|
|
} else {
|
|
|
|
TRACE("WHERE_DESTINATION %s\n", wine_dbgstr_rect(&wma->dest));
|
2009-01-11 16:45:51 +01:00
|
|
|
rc = wma->dest;
|
2004-03-16 04:09:14 +01:00
|
|
|
}
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WHERE_FRAME) {
|
2004-03-16 04:09:14 +01:00
|
|
|
if (dwFlags & MCI_DGV_WHERE_MAX)
|
|
|
|
FIXME("MCI_DGV_WHERE_FRAME_MAX\n");
|
|
|
|
else
|
|
|
|
FIXME("MCI_DGV_WHERE_FRAME\n");
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WHERE_SOURCE) {
|
2004-03-16 04:09:14 +01:00
|
|
|
if (dwFlags & MCI_DGV_WHERE_MAX) {
|
2016-06-29 09:54:30 +02:00
|
|
|
SetRect(&rc, 0, 0, wma->inbih->biWidth, wma->inbih->biHeight);
|
2009-01-11 16:45:51 +01:00
|
|
|
TRACE("WHERE_SOURCE_MAX %s\n", wine_dbgstr_rect(&rc));
|
2004-03-16 04:09:14 +01:00
|
|
|
} else {
|
|
|
|
TRACE("WHERE_SOURCE %s\n", wine_dbgstr_rect(&wma->source));
|
2009-01-11 16:45:51 +01:00
|
|
|
rc = wma->source;
|
2004-03-16 04:09:14 +01:00
|
|
|
}
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WHERE_VIDEO) {
|
2004-03-16 04:09:14 +01:00
|
|
|
if (dwFlags & MCI_DGV_WHERE_MAX)
|
|
|
|
FIXME("WHERE_VIDEO_MAX\n");
|
|
|
|
else
|
|
|
|
FIXME("WHERE_VIDEO\n");
|
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WHERE_WINDOW) {
|
2004-03-16 04:09:14 +01:00
|
|
|
if (dwFlags & MCI_DGV_WHERE_MAX) {
|
2009-01-11 16:45:51 +01:00
|
|
|
GetWindowRect(GetDesktopWindow(), &rc);
|
|
|
|
TRACE("WHERE_WINDOW_MAX %s\n", wine_dbgstr_rect(&rc));
|
2004-03-16 04:09:14 +01:00
|
|
|
} else {
|
2009-01-11 16:45:51 +01:00
|
|
|
GetWindowRect(wma->hWndPaint, &rc);
|
|
|
|
TRACE("WHERE_WINDOW %s\n", wine_dbgstr_rect(&rc));
|
2004-03-16 04:09:14 +01:00
|
|
|
}
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
2009-01-11 16:45:51 +01:00
|
|
|
|
|
|
|
/* In MCI, RECT structure is used differently: rc.right = width & rc.bottom = height
|
|
|
|
* So convert the normal RECT into a MCI RECT before returning */
|
2016-06-29 09:54:30 +02:00
|
|
|
SetRect(&lpParms->rc, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);
|
2009-01-11 16:45:51 +01:00
|
|
|
|
2004-01-01 01:48:01 +01:00
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* MCIAVI_mciWindow [internal]
|
|
|
|
*/
|
2005-02-09 23:26:25 +01:00
|
|
|
DWORD MCIAVI_mciWindow(UINT wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMSW lpParms)
|
2001-02-14 22:49:22 +01:00
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = MCIAVI_mciGetOpenDev(wDevID);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2006-10-12 21:34:57 +02:00
|
|
|
TRACE("(%04x, %08X, %p)\n", wDevID, dwFlags, lpParms);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
2009-11-28 15:50:41 +01:00
|
|
|
if (dwFlags & MCI_TEST) return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-01 01:48:01 +01:00
|
|
|
EnterCriticalSection(&wma->cs);
|
|
|
|
|
2001-02-14 22:49:22 +01:00
|
|
|
if (dwFlags & MCI_DGV_WINDOW_HWND) {
|
2004-01-01 01:48:01 +01:00
|
|
|
if (IsWindow(lpParms->hWnd))
|
|
|
|
{
|
|
|
|
TRACE("Setting hWnd to %p\n", lpParms->hWnd);
|
|
|
|
if (wma->hWnd) ShowWindow(wma->hWnd, SW_HIDE);
|
|
|
|
wma->hWndPaint = (lpParms->hWnd == MCI_DGV_WINDOW_DEFAULT) ? wma->hWnd : lpParms->hWnd;
|
|
|
|
}
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_STATE) {
|
|
|
|
TRACE("Setting nCmdShow to %d\n", lpParms->nCmdShow);
|
2004-03-02 00:38:25 +01:00
|
|
|
ShowWindow(wma->hWndPaint, lpParms->nCmdShow);
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_TEXT) {
|
2005-02-09 23:26:25 +01:00
|
|
|
TRACE("Setting caption to %s\n", debugstr_w(lpParms->lpstrText));
|
|
|
|
SetWindowTextW(wma->hWndPaint, lpParms->lpstrText);
|
2001-02-14 22:49:22 +01:00
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-01 01:48:01 +01:00
|
|
|
LeaveCriticalSection(&wma->cs);
|
2001-02-14 22:49:22 +01:00
|
|
|
return 0;
|
|
|
|
}
|