@Override void createHandle (int index) { state |= HANDLE | CANVAS | CHECK_SUBWINDOW; boolean scrolled = (style & (SWT.H_SCROLL | SWT.V_SCROLL)) != 0; if (!scrolled) state |= THEME_BACKGROUND; createHandle (index, true, scrolled || (style & SWT.BORDER) != 0); }
@Override void createHandle () { super.createHandle (); state &= ~CANVAS; state |= TRACK_MOUSE; }
@Override void createHandle (int index) { state |= HANDLE | CANVAS | CHECK_SUBWINDOW; boolean scrolled = (style & (SWT.H_SCROLL | SWT.V_SCROLL)) != 0; if (!scrolled) state |= THEME_BACKGROUND; createHandle (index, true, scrolled || (style & SWT.BORDER) != 0); }
@Override void createHandle (int index) { state |= HANDLE | CANVAS | CHECK_SUBWINDOW; boolean scrolled = (style & (SWT.H_SCROLL | SWT.V_SCROLL)) != 0; if (!scrolled) state |= THEME_BACKGROUND; createHandle (index, true, scrolled || (style & SWT.BORDER) != 0); }
@Override void createHandle () { /* * Feature in Windows. When a button is created, * it clears the UI state for all controls in the * shell by sending WM_CHANGEUISTATE with UIS_SET, * UISF_HIDEACCEL and UISF_HIDEFOCUS to the parent. * This is undocumented and unexpected. The fix * is to ignore the WM_CHANGEUISTATE, when sent * from CreateWindowEx(). */ parent.state |= IGNORE_WM_CHANGEUISTATE; super.createHandle (); parent.state &= ~IGNORE_WM_CHANGEUISTATE; state |= DRAW_BACKGROUND; state &= ~CANVAS; }
@Override void createHandle () { super.createHandle (); state &= ~(CANVAS | THEME_BACKGROUND); if ((style & SWT.BORDER) == 0) { int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE); bits &= ~(OS.WS_EX_CLIENTEDGE | OS.WS_EX_STATICEDGE); OS.SetWindowLong (handle, OS.GWL_EXSTYLE, bits); } }
@Override void createHandle () { super.createHandle (); state &= ~(CANVAS | THEME_BACKGROUND); /* * 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 /*long*/ hFont = OS.GetStockObject (OS.SYSTEM_FONT); OS.SendMessage (handle, OS.WM_SETFONT, hFont, 0); }
@Override void createHandle () { super.createHandle (); state &= ~(CANVAS | THEME_BACKGROUND); /* Enable the flat look for tab folders on PPC */ if (OS.IsPPC) { OS.SendMessage (handle, OS.CCM_SETVERSION, 0x020c /*COMCTL32_VERSION*/, 0); } /* * 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. */ int /*long*/ hwndToolTip = OS.SendMessage (handle, OS.TCM_GETTOOLTIPS, 0, 0); OS.SendMessage (hwndToolTip, OS.TTM_SETMAXTIPWIDTH, 0, 0x7FFF); createdAsRTL = (style & SWT.RIGHT_TO_LEFT) != 0; }
super.createHandle (); } else { int threadId = OS.GetCurrentThreadId (); if (cbtProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS); cbtHook = OS.SetWindowsHookEx (OS.WH_CBT, cbtProc, 0, threadId); super.createHandle (); if (cbtHook != 0) OS.UnhookWindowsHookEx (cbtHook); cbtHook = 0;
@Override void createHandle () { super.createHandle (); state &= ~CANVAS;
@Override void createHandle () { super.createHandle (); state &= ~(CANVAS | THEME_BACKGROUND);
@Override void createHandle () { super.createHandle (); state &= ~(CANVAS | THEME_BACKGROUND); int /*long*/ hInstance = OS.GetModuleHandle (null);
@Override void createHandle () { super.createHandle (); state &= ~(CANVAS | THEME_BACKGROUND);