wined3d: Use SetWindowPos() to make the focus window active.

This commit is contained in:
Henri Verbeet 2010-11-05 14:11:38 +01:00 committed by Alexandre Julliard
parent e279fa2afd
commit feaf81f60d
4 changed files with 4 additions and 1 deletions

View File

@ -1621,6 +1621,7 @@ static void test_wndproc(void)
static const struct message messages[] =
{
{WM_WINDOWPOSCHANGING, FOCUS_WINDOW},
{WM_ACTIVATE, FOCUS_WINDOW},
{WM_SETFOCUS, FOCUS_WINDOW},
{WM_WINDOWPOSCHANGING, DEVICE_WINDOW},

View File

@ -2465,6 +2465,7 @@ static void test_wndproc(void)
static const struct message messages[] =
{
{WM_WINDOWPOSCHANGING, FOCUS_WINDOW},
{WM_ACTIVATE, FOCUS_WINDOW},
{WM_SETFOCUS, FOCUS_WINDOW},
{0, 0},

View File

@ -3272,6 +3272,7 @@ static void test_wndproc(void)
static const UINT messages[] =
{
WM_WINDOWPOSCHANGING,
WM_ACTIVATE,
WM_SETFOCUS,
0,

View File

@ -1763,7 +1763,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_AcquireFocusWindow(IWineD3DDevice *ifac
}
device->focus_window = window;
SetForegroundWindow(window);
SetWindowPos(window, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
return WINED3D_OK;
}