Buggy code:
break ; } } } } } break ; } } } break ; } } if ( ( ! accentKey ) && ( ! ( ignoreNextKey ) ) ) { keyMsg . hwnd = control . handle ; int flags = ( ( ( OS . PM_REMOVE ) | ( OS . PM_NOYIELD ) ) | ( OS . PM_QS_INPUT ) ) | ( OS . PM_QS_POSTMESSAGE ) ; do { if ( ! ( consumed |= filterMessage ( keyMsg ) ) ) { OS . TranslateMessage ( keyMsg ) ; consumed |= ( OS . DispatchMessage ( keyMsg ) ) == 1 ; } } while ( OS . PeekMessage ( keyMsg , keyMsg . hwnd , WM_KEYFIRST , WM_KEYLAST , flags ) ) ; } switch ( keyMsg . message ) { case OS . WM_KEYDOWN : case OS . WM_SYSKEYDOWN : { switch ( ( ( int ) ( keyMsg . wParam ) ) ) { case OS . VK_SHIFT : case OS . VK_MENU : case OS . VK_CONTROL : case OS . VK_CAPITAL : case OS . VK_NUMLOCK : case OS . VK_SCROLL : break ; default : { ignoreNextKey = accentKey ; break ; } } } } } if ( consumed ) { int hHeap = OS . GetProcessHeap ( ) ; OS . HeapFree ( hHeap , 0 , lParam ) ; } else { OS . PostMessage ( embeddedHwnd , Display . SWT_KEYMSG , wParam , lParam ) ; } return 0 ; } case Display . SWT_TRAYICONMSG : { if ( ( tray ) != null ) { TrayItem [ ] items = tray . items ; for ( int i = 0 ; i < ( items . length ) ; i ++ ) { TrayItem item = items [ i ] ; if ( ( item != null ) && ( ( item . id ) == wParam ) ) { return item . messageProc ( hwnd , ( ( int ) ( msg ) ) , wParam , lParam ) ; } } } return 0 ; } case OS . WM_ACTIVATEAPP : { if ( wParam != 0 ) { if ( ! ( isXMouseActive ( ) ) ) { Shell modal = ( ( modalDialog ) != null ) ? modalDialog . parent : getModalShell ( ) ; if ( ( modal != null ) && ( ! ( modal . isDisposed ( ) ) ) ) { int hwndModal = modal . handle ; if ( OS . IsWindowEnabled ( hwndModal ) ) { modal . bringToTop ( ) ; if ( modal . isDisposed ( ) ) break ; } int hwndPopup = OS . GetLastActivePopup ( hwndModal ) ; if ( ( hwndPopup != 0 ) && ( hwndPopup != ( modal . handle ) ) ) { if ( ( getControl ( hwndPopup ) ) == null ) { if ( OS . IsWindowEnabled ( hwndPopup ) ) { OS . SetActiveWindow ( hwndPopup ) ; } } } } } } break ; } case OS . WM_ENDSESSION : { if ( wParam != 0 ) { dispose ( ) ; } break ; } case OS . WM_QUERYENDSESSION : { Event event = new Event ( ) ; sendEvent ( Close , event ) ; if ( ! ( event . doit ) ) return 0 ; break ; } case OS . WM_DWMCOLORIZATIONCOLORCHANGED : { OS . SetTimer ( hwndMessage , Display . SETTINGS_ID , Display . SETTINGS_DELAY , 0 ) ; break ; } case OS . WM_SETTINGCHANGE : { <START_BUG> if ( ( OS . COMCTL32_MAJOR ) >= 6 ) { <END_BUG> OS . SetTimer ( hwndMessage , Display . SETTINGS_ID , Display . SETTINGS_DELAY , 0 ) ; break ; } switch ( ( ( int ) ( wParam ) ) ) { case 0 : case 1 : case OS . SPI_SETHIGHCONTRAST : OS . SetTimer ( hwndMessage , Display . SETTINGS_ID , Display . SETTINGS_DELAY , 0 ) ; } break ; } case OS . WM_THEMECHANGED : { if ( ( OS . COMCTL32_MAJOR ) >= 6 ) { if ( ( hButtonTheme ) != 0 ) OS . CloseThemeData ( hButtonTheme ) ; if ( ( hEditTheme ) != 0 ) OS . CloseThemeData ( hEditTheme ) ; if ( ( hExplorerBarTheme ) != 0 ) OS . CloseThemeData ( hExplorerBarTheme ) ; if ( ( hScrollBarTheme ) != 0 ) OS . CloseThemeData ( hScrollBarTheme ) ; if ( ( hTabTheme ) != 0 ) OS . CloseThemeData ( hTabTheme ) ; hButtonTheme = hEditTheme = hExplorerBarTheme = hScrollBarTheme = hTabTheme = 0 ; } break ; } case OS . WM_TIMER : { if ( wParam == ( Display . SETTINGS_ID ) ) { OS . KillTimer ( hwndMessage , Display . SETTINGS_ID ) ; runSettings ( ) ; } else { runTimer ( wParam ) ; } break ; } default : { if ( ( ( int ) ( msg ) ) == ( Display . SWT_TASKBARCREATED ) ) { if ( ( tray ) != null ) { TrayItem [ ] items = tray . items ; for ( int i = 0 ; i < ( items . length ) ; i ++ ) { TrayItem item = items [ i ] ; if ( item != null ) item . recreate ( ) ; } } } } } return OS . DefWindowProc ( hwnd , ( ( int ) ( msg ) ) , wParam , lParam ) ; } int monitorEnumProc ( int hmonitor , int hdc , int lprcMonitor , int dwData ) { } int msgFilterProc ( int code , int wParam , int lParam ) { }

Fix:
if ( ( ! ( OS . IsWinCE ) ) && ( ( OS . WIN32_VERSION ) >= ( OS . VERSION ( 6 , 0 ) ) ) ) {