if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); boolean ancestor = false; Composite composite = control.parent; composite = composite.parent; if (!ancestor) error (SWT.ERROR_INVALID_PARENT);
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); boolean ancestor = false; Composite composite = control.parent; composite = composite.parent; if (!ancestor) error (SWT.ERROR_INVALID_PARENT);
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); boolean ancestor = false; Composite composite = control.parent; composite = composite.parent; if (!ancestor) error (SWT.ERROR_INVALID_PARENT);
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); boolean ancestor = false; Composite composite = control.parent; composite = composite.parent; if (!ancestor) error (SWT.ERROR_INVALID_PARENT);
void drawBackgroundInPixels(GC gc, int x, int y, int width, int height, int offsetX, int offsetY) { if (gc == null) error (SWT.ERROR_NULL_ARGUMENT); if (gc.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); RECT rect = new RECT (); OS.SetRect (rect, x, y, x + width, y + height); int /*long*/ hDC = gc.handle; int pixel = background == -1 ? gc.getBackground ().handle : -1; drawBackground (hDC, rect, pixel, offsetX, offsetY); }
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); layout (changed, SWT.NONE);
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); layout (changed, SWT.NONE);
checkWidget(); if( changed == null ) { error( SWT.ERROR_INVALID_ARGUMENT );
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); layout (changed, SWT.NONE);
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); layout (changed, SWT.NONE);
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); layout (changed, SWT.NONE);
void resizeEmbeddedHandle(int /*long*/ embeddedHandle, int width, int height) { if (embeddedHandle == 0) return; int [] processID = new int [1]; int threadId = OS.GetWindowThreadProcessId (embeddedHandle, processID); if (threadId != OS.GetCurrentThreadId ()) { if (processID [0] == OS.GetCurrentProcessId ()) { if (display.msgHook == 0) { if (!OS.IsWinCE) { display.getMsgCallback = new Callback (display, "getMsgProc", 3); display.getMsgProc = display.getMsgCallback.getAddress (); if (display.getMsgProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS); display.msgHook = OS.SetWindowsHookEx (OS.WH_GETMESSAGE, display.getMsgProc, OS.GetLibraryHandle(), threadId); OS.PostThreadMessage (threadId, OS.WM_NULL, 0, 0); } } } int flags = OS.SWP_NOZORDER | OS.SWP_DRAWFRAME | OS.SWP_NOACTIVATE | OS.SWP_ASYNCWINDOWPOS; OS.SetWindowPos (embeddedHandle, 0, 0, 0, width, height, flags); } }