strmbase: Create the video window with the correct styles.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cb6d6f5d1a
commit
c05c4452ba
|
@ -1391,11 +1391,11 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw
|
|||
|
||||
hr = IVideoWindow_get_WindowStyle(window, &style);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
"Got style %#x.\n", style);
|
||||
|
||||
style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
"Got style %#x.\n", style);
|
||||
|
||||
hr = IVideoWindow_put_WindowStyle(window, style | WS_DISABLED);
|
||||
|
@ -1414,10 +1414,10 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw
|
|||
|
||||
hr = IVideoWindow_get_WindowStyle(window, &style);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
|
||||
style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
|
||||
ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
|
||||
|
||||
|
|
|
@ -1525,11 +1525,11 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw
|
|||
|
||||
hr = IVideoWindow_get_WindowStyle(window, &style);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
"Got style %#x.\n", style);
|
||||
|
||||
style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
"Got style %#x.\n", style);
|
||||
|
||||
hr = IVideoWindow_put_WindowStyle(window, style | WS_DISABLED);
|
||||
|
@ -1548,10 +1548,10 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw
|
|||
|
||||
hr = IVideoWindow_get_WindowStyle(window, &style);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
|
||||
style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
|
||||
ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
|
||||
|
||||
|
|
|
@ -1525,11 +1525,11 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw
|
|||
|
||||
hr = IVideoWindow_get_WindowStyle(window, &style);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
"Got style %#x.\n", style);
|
||||
|
||||
style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW),
|
||||
"Got style %#x.\n", style);
|
||||
|
||||
hr = IVideoWindow_put_WindowStyle(window, style | WS_DISABLED);
|
||||
|
@ -1548,10 +1548,10 @@ static void test_video_window_style(IVideoWindow *window, HWND hwnd, HWND our_hw
|
|||
|
||||
hr = IVideoWindow_get_WindowStyle(window, &style);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
|
||||
style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||
todo_wine ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
ok(style == (WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW), "Got style %#x.\n", style);
|
||||
|
||||
ok(GetActiveWindow() == our_hwnd, "Got active window %p.\n", GetActiveWindow());
|
||||
|
||||
|
|
|
@ -118,7 +118,8 @@ HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This)
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
This->hWnd = CreateWindowExW(0, class_nameW, windownameW, WS_SIZEBOX,
|
||||
This->hWnd = CreateWindowExW(0, class_nameW, windownameW,
|
||||
WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
NULL, NULL, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue