Buggy code:
int lastID ; int hFirstIndexOf ; int hLastIndexOf ; int lastIndexOf ; int itemCount ; int sortDirection ; boolean dragStarted ; boolean gestureCompleted ; boolean insertAfter ; boolean shrink ; boolean ignoreShrink ; boolean ignoreSelect ; boolean ignoreExpand ; boolean ignoreDeselect ; boolean ignoreResize ; boolean lockSelection ; boolean oldSelected ; boolean newSelected ; boolean ignoreColumnMove ; boolean linesVisible ; boolean customDraw ; boolean printClient ; boolean painted ; boolean ignoreItemHeight ; boolean ignoreCustomDraw ; boolean ignoreDrawForeground ; boolean ignoreDrawBackground ; boolean ignoreDrawFocus ; boolean ignoreDrawSelection ; boolean ignoreDrawHot ; boolean ignoreFullSelection ; boolean explorerTheme ; int scrollWidth ; int selectionForeground ; int headerToolTipHandle ; int itemToolTipHandle ; static final int INSET = 3 ; static final int GRID_WIDTH = 1 ; static final int SORT_WIDTH = 10 ; static final int HEADER_MARGIN = 12 ; static final int HEADER_EXTRA = 3 ; static final int INCREMENT = 5 ; static final int EXPLORER_EXTRA = 2 ; static final boolean EXPLORER_THEME = true ; static final int TreeProc ; static final TCHAR TreeClass = new TCHAR ( 0 , OS . WC_TREEVIEW , true ) ; static final int HeaderProc ; static final TCHAR HeaderClass = new TCHAR ( 0 , OS . WC_HEADER , true ) ; public Tree ( Composite parent , int style ) { } static int checkStyle ( int style ) { } void _addListener ( int eventType , Listener listener ) { } TreeItem _getItem ( int hItem ) { } TreeItem _getItem ( int hItem , int id ) { } void _setBackgroundPixel ( int newPixel ) { } public void addSelectionListener ( SelectionListener listener ) { } public void addTreeListener ( TreeListener listener ) { } int borderHandle ( ) { } LRESULT CDDS_ITEMPOSTPAINT ( NMTVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_ITEMPREPAINT ( NMTVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_POSTPAINT ( NMTVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_PREPAINT ( NMTVCUSTOMDRAW nmcd , int wParam , int lParam ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } void checkBuffered ( ) { } boolean checkData ( TreeItem item , boolean redraw ) { } boolean checkData ( TreeItem item , int index , boolean redraw ) { } boolean checkHandle ( int hwnd ) { } boolean checkScroll ( int hItem ) { } protected void checkSubclass ( ) { } public void clear ( int index , boolean all ) { } void clear ( int hItem , TVITEM tvItem ) { } public void clearAll ( boolean all ) { } void clearAll ( int hItem , TVITEM tvItem , boolean all ) { } int CompareFunc ( int lParam1 , int lParam2 , int lParamSort ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } void createHeaderToolTips ( ) { } void createItem ( TreeColumn column , int index ) { } void createItem ( TreeItem item , int hParent , int hInsertAfter , int hItem ) { } void createItemToolTips ( ) { if ( OS . IsWinCE ) return ; if ( ( itemToolTipHandle ) != 0 ) return ; int bits = OS . GetWindowLong ( handle , GWL_STYLE ) ; bits |= OS . TVS_NOTOOLTIPS ; OS . SetWindowLong ( handle , GWL_STYLE , bits ) ; <START_BUG> itemToolTipHandle = OS . CreateWindowEx ( WS_EX_TRANSPARENT , new TCHAR ( 0 , OS . TOOLTIPS_CLASS , true ) , null , 0 , CW_USEDEFAULT , 0 , CW_USEDEFAULT , 0 , handle , 0 , OS . GetModuleHandle ( null ) , null ) ; <END_BUG> if ( ( itemToolTipHandle ) == 0 ) error ( ERROR_NO_HANDLES ) ; OS . SendMessage ( itemToolTipHandle , TTM_SETDELAYTIME , TTDT_INITIAL , 0 ) ; TOOLINFO lpti = new TOOLINFO ( ) ; lpti . cbSize = TOOLINFO . sizeof ; lpti . hwnd = handle ; lpti . uId = handle ; lpti . uFlags = ( OS . TTF_SUBCLASS ) | ( OS . TTF_TRANSPARENT ) ; lpti . lpszText = OS . LPSTR_TEXTCALLBACK ; OS . SendMessage ( itemToolTipHandle , TTM_ADDTOOL , 0 , lpti ) ; } void createParent ( ) { } void createWidget ( ) { } int defaultBackground ( ) { } void deregister ( ) { } void deselect ( int hItem , TVITEM tvItem , int hIgnoreItem ) { } public void deselect ( TreeItem item ) { } public void deselectAll ( ) { } void destroyItem ( TreeColumn column ) { } void destroyItem ( TreeItem item , int hItem ) { } void enableDrag ( boolean enabled ) { } void enableWidget ( boolean enabled ) { } boolean findCell ( int x , int y , TreeItem [ ] item , int [ ] index , RECT [ ] cellRect , RECT [ ] itemRect ) { } int findIndex ( int hFirstItem , int hItem ) { } Widget findItem ( int hItem ) { } int findItem ( int hFirstItem , int index ) { } TreeItem getFocusItem ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } Point getImageSize ( ) { } int getBottomItem ( ) { } public TreeColumn getColumn ( int index ) { } public int getColumnCount ( ) { } public int [ ] getColumnOrder ( ) { } public TreeColumn [ ] getColumns ( ) { } public TreeItem getItem ( int index ) { } TreeItem getItem ( NMTVCUSTOMDRAW nmcd ) { } public TreeItem getItem ( Point point ) { } public int getItemCount ( ) { } int getItemCount ( int hItem ) { } public int getItemHeight ( ) { }

Fix:
itemToolTipHandle = OS . CreateWindowEx ( WS_EX_TRANSPARENT , new TCHAR ( 0 , OS . TOOLTIPS_CLASS , true ) , null , TTS_NOPREFIX , CW_USEDEFAULT , 0 , CW_USEDEFAULT , 0 , handle , 0 , OS . GetModuleHandle ( null ) , null ) ;