if (OS.COMCTL32_MAJOR < 6) { int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); bits &= ~OS.TBSTYLE_TRANSPARENT; OS.SetWindowLong (handle, OS.GWL_STYLE, bits); }
void createHandle () {	super.createHandle ();	state &= ~CANVAS;	/*	* Feature in Windows.  Despite the fact that the	* tool tip text contains \r\n, the tooltip will	* not honour the new line unless TTM_SETMAXTIPWIDTH	* is set.  The fix is to set TTM_SETMAXTIPWIDTH to	* a large value.	*/	/*	* These lines are intentionally commented.  The tool	* bar currently sets this value to 300 so it is not	* necessary to set TTM_SETMAXTIPWIDTH.	*///	int hwndToolTip = OS.SendMessage (handle, OS.TB_GETTOOLTIPS, 0, 0);//	OS.SendMessage (hwndToolTip, OS.TTM_SETMAXTIPWIDTH, 0, 0x7FFF);	/*	* Feature in Windows.  When the control is created,	* it does not use the default system font.  A new HFONT	* is created and destroyed when the control is destroyed.	* This means that a program that queries the font from	* this control, uses the font in another control and then	* destroys this control will have the font unexpectedly	* destroyed in the other control.  The fix is to assign	* the font ourselves each time the control is created.	* The control will not destroy a font that it did not	* create.	*/	int hFont = OS.GetStockObject (OS.SYSTEM_FONT);	OS.SendMessage (handle, OS.WM_SETFONT, hFont, 0);	/* Set the button struct, bitmap and button sizes */	OS.SendMessage (handle, OS.TB_BUTTONSTRUCTSIZE, TBBUTTON.sizeof, 0);	OS.SendMessage (handle, OS.TB_SETBITMAPSIZE, 0, 0);	OS.SendMessage (handle, OS.TB_SETBUTTONSIZE, 0, 0);	/* Set the extended style bits */	int bits = OS.TBSTYLE_EX_DRAWDDARROWS | OS.TBSTYLE_EX_MIXEDBUTTONS | OS.TBSTYLE_EX_HIDECLIPPEDBUTTONS;	OS.SendMessage (handle, OS.TB_SETEXTENDEDSTYLE, 0, bits);}