@Override LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_ERASEBKGND (wParam, lParam); if (result != null) return result; /* * Feature in Windows. Group boxes do not erase * the background before drawing. The fix is to * fill the background. */ drawBackground (wParam); return LRESULT.ONE; }
@Override LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { super.WM_ERASEBKGND (wParam, lParam); drawBackground (wParam); return LRESULT.ONE; }
@Override LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_ERASEBKGND (wParam, lParam); if ((style & SWT.DOUBLE_BUFFERED) != 0) return LRESULT.ONE; if (findImageControl () != null) return LRESULT.ONE; return result; }
@Override LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_ERASEBKGND (wParam, lParam); if (findImageControl () != null) return LRESULT.ONE; if (!OS.IsWinCE && OS.COMCTL32_MAJOR < 6) { if ((style & SWT.DOUBLE_BUFFERED) != 0) { int bits = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0); if ((bits & OS.LVS_EX_DOUBLEBUFFER) == 0) return LRESULT.ONE; } } return result; }
@Override LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_ERASEBKGND (wParam, lParam); /* * Bug in Windows. For some reason, NM_CUSTOMDRAW with * CDDS_PREERASE and CDDS_POSTERASE is never sent for * versions of Windows earlier than XP. The fix is to * draw the background in WM_ERASEBKGND; */ if (findBackgroundControl () != null) { if (OS.COMCTL32_MAJOR < 6) { drawBackground (wParam); return LRESULT.ONE; } } return result; }
@Override LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_ERASEBKGND (wParam, lParam); /* * Feature in Windows. For some reason, Windows * does not fully erase the area that the cool bar * occupies when the size of the cool bar is larger * than the space occupied by the cool bar items. * The fix is to erase the cool bar background. * * NOTE: On versions of Windows prior to XP, for * some reason, the cool bar draws separators in * WM_ERASEBKGND. Therefore it is essential to run * the cool bar window proc after the background has * been erased. */ if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { drawBackground (wParam); return null; } return result; }