Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. A couple of problems...

A couple of problems...

Scheduled Pinned Locked Moved C#
question
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Ormerod
    wrote on last edited by
    #1

    Hi, I am doing some owner drawn menus that are supposed to display when right clicking on a NotifyIcon in the Tray. This has lead me to discover these 2 issues... 1. You can't use the OwnerDraw property on menuitems that are added to the "ContextMenu" property of a NotifyIcon. When you do, the user defined "MeasureItem" and "DrawItem" events never fire so you end up with a blank menu. - I fixed this by switching to use the NotifyIconEx that I downloaded from this site, and all my menus work fine then. 2. When you call e.DrawBackground() in the DrawItem event of the menu it draws the correct highlight color, but it draws the background as "KnownColor.Window" instead of "KnownColor.Menu" when the item isn't selected. Does anybody know anything about these 2 things? Anybody know any way to get this work correctly? Or are they already working correctly and I just didn't RTFM? Cheers, Chris.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups