Commit 6f7c0c76 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard
Browse files

mciqtz32: Hide the default video window when switching to another one.



Signed-off-by: Akihiro Sagawa's avatarAkihiro Sagawa <sagawa.aki@gmail.com>
parent 9cdc6812
......@@ -1008,6 +1008,9 @@ static DWORD MCIQTZ_mciWindow(UINT wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMS
IBasicVideo_GetVideoSize(wma->vidbasic, &width, &height);
IVideoWindow_SetWindowPosition(wma->vidwin, 0, 0, width, height);
if (wma->parent == wma->window)
ShowWindow(wma->window, SW_HIDE);
wma->parent = hwnd;
}
}
......
......@@ -1658,7 +1658,7 @@ static void test_video_window(void)
style = GetWindowLongW(video_window, GWL_STYLE);
expected = testcase[i].expected_style;
todo_wine ok(style == expected, "Video window %p: got style %#lx, expected %#lx.\n",
ok(style == expected, "Video window %p: got style %#lx, expected %#lx.\n",
video_window, style, expected);
/* destination size is reset to the source video size */
......@@ -1688,14 +1688,14 @@ static void test_video_window(void)
ok(!err, "Got %s.\n", dbg_mcierr(err));
ok(IsWindowVisible(main_window), "Main window should be shown.\n");
ok(IsWindow(video_window), "Video window should exist.\n");
todo_wine ok(!IsWindowVisible(video_window), "Video window should be hidden.\n");
ok(!IsWindowVisible(video_window), "Video window should be hidden.\n");
/* video window is reset to the default window, which is visible again */
parm.win.hWnd = NULL;
err = mciSendCommandW(id, MCI_WINDOW, MCI_DGV_WINDOW_HWND, (DWORD_PTR)&parm);
ok(!err, "Got %s.\n", dbg_mcierr(err));
ok(IsWindowVisible(main_window), "Main window should be shown.\n");
ok(IsWindowVisible(video_window), "Video window should be shown.\n");
todo_wine ok(IsWindowVisible(video_window), "Video window should be shown.\n");
err = mciSendCommandW(id, MCI_WHERE, MCI_DGV_WHERE_DESTINATION, (DWORD_PTR)&parm);
ok(!err, "Got %s.\n", dbg_mcierr(err));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment