We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Background Layer Color

Hi, Please, it is possible to change this background color ?: http://web.hebergement.com/~alphacon4/Syncfusion.jpg THX

1 Reply

AD Administrator Syncfusion Team April 28, 2005 04:10 PM

Hi Jonathan, you would have to handle the WM_NCPAINT message. This is the code we use in ScrollControl.cs to draw that area: private void WmNcPaint(ref Message msg) { if (this.HScroll && this.VScroll) { if(cachedRgn != IntPtr.Zero) { NativeMethods.DeleteObject(cachedRgn); this.cachedRgn = IntPtr.Zero; } this.cachedRgn = DrawingUtils.NCPaintHelper(this, this, ref msg); } bool themed = this is IThemedControl && XPThemes.IsThemedOS && ((IThemedControl) this).ThemesEnabled; if (themed && themedDrawing != null) themedDrawing.DrawThemedBorderColor(this, ref msg); base.WndProc(ref msg); } protected override void WndProc(ref Message msg) { switch (msg.Msg) { case NativeMethods.WM_NCPAINT: this.WmNcPaint(ref msg); break; ... NCPaintHelper is a internal helper routine we use. You can look it up in the source code in Syncfusion.Shared\src\Drawing Stefan >Hi, > >Please, it is possible to change this background color ?: > >http://web.hebergement.com/~alphacon4/Syncfusion.jpg > >THX > >

Loader.
Live Chat Icon For mobile
Up arrow icon