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)
This commit is contained in:
law%netscape.com 2001-10-17 00:42:12 +00:00
parent aea8ff1235
commit 7a0407bd6d

View File

@ -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;