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.
Unfortunately, activation email could not send to your email. Please try again.

Background Layer Color

Thread ID:

Created:

Updated:

Platform:

Replies:

28146 Apr 25,2005 03:21 PM Apr 28,2005 05:10 PM Windows Forms 1
loading
Tags: GridControl
Jonathan Urban
Asked On April 25, 2005 03:21 PM

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

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.

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.

;