Fixes for bugs:
74445 - Add call to DdeUnaccessData (r=pchen, sr=blake) 103849 - Use ::IsIconic to check if window is minimized before restoring (r=matt, sr=blake) git-svn-id: svn://10.0.0.236/trunk@105576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -142,8 +142,10 @@ activateWindow( nsIDOMWindowInternal *win ) {
|
||||
// Try to get native window handle.
|
||||
HWND hwnd = hwndForDOMWindow( win );
|
||||
if ( hwnd ) {
|
||||
// Restore the window in case it is minimized.
|
||||
::ShowWindow( hwnd, SW_RESTORE );
|
||||
// Restore the window if it is minimized.
|
||||
if ( ::IsIconic( hwnd ) ) {
|
||||
::ShowWindow( hwnd, SW_RESTORE );
|
||||
}
|
||||
// Use the OS call, if possible.
|
||||
::SetForegroundWindow( hwnd );
|
||||
} else {
|
||||
@@ -1262,6 +1264,8 @@ nsNativeAppSupportWin::HandleDDENotification( UINT uType, // transaction t
|
||||
printf( "Handling dde request: [%s]...\n", (char*)request );
|
||||
#endif
|
||||
HandleRequest( request );
|
||||
// Release the data.
|
||||
DdeUnaccessData( hdata );
|
||||
result = (HDDEDATA)DDE_FACK;
|
||||
} else {
|
||||
result = (HDDEDATA)DDE_FNOTPROCESSED;
|
||||
|
||||
Reference in New Issue
Block a user