365 366 MsgRouting AwtWindow::WmWindowPosChanged(LPARAM windowPos) { 367 WINDOWPOS * wp = (WINDOWPOS *)windowPos; 368 369 // Reposition the warning window 370 if (IsUntrusted() && warningWindow != NULL) { 371 if (wp->flags & SWP_HIDEWINDOW) { 372 UpdateSecurityWarningVisibility(); 373 } 374 375 RepositionSecurityWarning((JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2)); 376 377 if (wp->flags & SWP_SHOWWINDOW) { 378 UpdateSecurityWarningVisibility(); 379 } 380 } 381 382 if (wp->flags & SWP_HIDEWINDOW) { 383 EnableTranslucency(FALSE); 384 } 385 386 return mrDoDefault; 387 } 388 389 LPCTSTR AwtWindow::GetClassName() { 390 return TEXT("SunAwtWindow"); 391 } 392 393 void AwtWindow::FillClassInfo(WNDCLASSEX *lpwc) 394 { 395 AwtComponent::FillClassInfo(lpwc); 396 /* 397 * This line causes bug #4189244 (Swing Popup menu is not being refreshed (cleared) under a Dialog) 398 * so it's comment out (son@sparc.spb.su) 399 * 400 * lpwc->style |= CS_SAVEBITS; // improve pull-down menu performance 401 */ 402 lpwc->cbWndExtra = DLGWINDOWEXTRA; 403 } 404 | 365 366 MsgRouting AwtWindow::WmWindowPosChanged(LPARAM windowPos) { 367 WINDOWPOS * wp = (WINDOWPOS *)windowPos; 368 369 // Reposition the warning window 370 if (IsUntrusted() && warningWindow != NULL) { 371 if (wp->flags & SWP_HIDEWINDOW) { 372 UpdateSecurityWarningVisibility(); 373 } 374 375 RepositionSecurityWarning((JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2)); 376 377 if (wp->flags & SWP_SHOWWINDOW) { 378 UpdateSecurityWarningVisibility(); 379 } 380 } 381 382 if (wp->flags & SWP_HIDEWINDOW) { 383 EnableTranslucency(FALSE); 384 } 385 if (wp->flags & SWP_SHOWWINDOW) { 386 EnableTranslucency(TRUE); 387 } 388 389 return mrDoDefault; 390 } 391 392 LPCTSTR AwtWindow::GetClassName() { 393 return TEXT("SunAwtWindow"); 394 } 395 396 void AwtWindow::FillClassInfo(WNDCLASSEX *lpwc) 397 { 398 AwtComponent::FillClassInfo(lpwc); 399 /* 400 * This line causes bug #4189244 (Swing Popup menu is not being refreshed (cleared) under a Dialog) 401 * so it's comment out (son@sparc.spb.su) 402 * 403 * lpwc->style |= CS_SAVEBITS; // improve pull-down menu performance 404 */ 405 lpwc->cbWndExtra = DLGWINDOWEXTRA; 406 } 407 |