mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
We have to activate MDI child windows.
This commit is contained in:
parent
8f16613b2d
commit
22614a3390
2 changed files with 4 additions and 1 deletions
|
@ -606,6 +606,7 @@ static LONG MDI_ChildActivate( WND *clientPtr, HWND hWndChild )
|
|||
if( clientInfo->hwndChildMaximized != hWndChild ) {
|
||||
if( hWndChild ) {
|
||||
clientInfo->hwndActiveChild = hWndChild;
|
||||
clientInfo->hwndChildMaximized = hWndChild;
|
||||
ShowWindow( hWndChild, SW_SHOWMAXIMIZED);
|
||||
} else
|
||||
ShowWindow( clientInfo->hwndActiveChild, SW_SHOWNORMAL );
|
||||
|
|
|
@ -1375,7 +1375,9 @@ BOOL WINAPI ShowWindow( HWND hwnd, INT cmd )
|
|||
else
|
||||
{
|
||||
/* We can't activate a child window */
|
||||
if (wndPtr->dwStyle & WS_CHILD) swp |= SWP_NOACTIVATE | SWP_NOZORDER;
|
||||
if ((wndPtr->dwStyle & WS_CHILD) &&
|
||||
!(wndPtr->dwExStyle & WS_EX_MDICHILD))
|
||||
swp |= SWP_NOACTIVATE | SWP_NOZORDER;
|
||||
if (!(swp & MINMAX_NOSWP))
|
||||
SetWindowPos( hwnd, HWND_TOP, newPos.left, newPos.top,
|
||||
newPos.right, newPos.bottom, LOWORD(swp) );
|
||||
|
|
Loading…
Reference in a new issue