joshuaand Posted December 10, 2003 Posted December 10, 2003 Hi, I have changed my form's background color, to a blue, and I have a mainmenu item on the form, but the menu still stays grey. I am using the ownerpaint and DrawItem to draw a background color for each menu item, but the background of the menu still stays grey? any ideas? Thanks Josh Quote
*Gurus* divil Posted December 10, 2003 *Gurus* Posted December 10, 2003 You won't be able to do this with native .NET methods. That colour is taken from the system colour settings. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
joshuaand Posted December 10, 2003 Author Posted December 10, 2003 is there any way to do it, API? Quote
*Gurus* divil Posted December 11, 2003 *Gurus* Posted December 11, 2003 Well, you can intercept WM_NCPAINT and take responsibility for drawing the nonclient parts of the form yourself. This includes the borders and titlebar as well as the menu. I don't know what functions, if any, allow you to determine the region occupied by the menu bar though. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.