[Bug 5725] Code for undocumented SwitchToThisWindow function does
not reflect empirical evidence
Wine Bugs
wine-bugs at winehq.org
Fri Oct 6 11:13:59 CDT 2006
http://bugs.winehq.org/show_bug.cgi?id=5725
------- Additional Comments From neil at parkwaycc.co.uk 2006-06-10 11:13 -------
Thanks for all your testing so far.
Would you mind trying this amendment instead please:
hwnds[0] = CreateWindow( "static", "", WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, NULL, NULL );
- ShowWindow( hwnds[0], sttw_tests[i].show );
+ ShowWindow( hwnds[0], sttw_tests[i].which ? SW_SHOWNORMAL :
sttw_tests[i].show );
hwnds[1] = CreateWindowEx( exstyle[sttw_tests[i].topmost],
"static", "", WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, NULL, NULL );
- ShowWindow( hwnds[1], sttw_tests[i].show );
+ ShowWindow( hwnds[1], sttw_tests[i].which ? sttw_tests[i].show :
SW_SHOWNORMAL );
SetActiveWindow( hwnds[1] );
SetForegroundWindow( hwnds[1] );
+ hwndfront = hwnds[1];
+ while (hwndfront && hwndfront != hwnds[0])
+ hwndfront = GetWindow( hwndfront, GW_HWNDNEXT );
+ todo_wine ok( hwndfront != NULL,
+ "[%d] windows created with unexpected z-order\n", i);
hwnd = hwnds[sttw_tests[i].which];
SwitchToThisWindow( hwnd, sttw_tests[i].flag );
/* On Windows, restoring a window is asynchronous. Give it 100ms */
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list