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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Background Layer Color

Thread ID:

Created:

Updated:

Platform:

Replies:

28146 Apr 25,2005 07:21 PM UTC Apr 28,2005 09:10 PM UTC WinForms 1
loading
Tags: GridControl
Jonathan Urban
Asked On April 25, 2005 07:21 PM UTC

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

Administrator [Syncfusion]
Replied On April 28, 2005 09:10 PM UTC

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 > >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;