Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...