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 / C++ / MFC
  4. ContextMenu with icons diplayed on right clicking the tray icon

ContextMenu with icons diplayed on right clicking the tray icon

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 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.
  • A Offline
    A Offline
    Aabid
    wrote on last edited by
    #1

    Hello all i made an application in which i had to display icons next to menu item and i did it successfully and it works fine in windows 2000, vista, 7 but in case of windows 2003 and Xp, there lies a problem as if in case any tool tip is displayed over my context menu, the menu item over which the tool tip lies that menu item`s icon (Only Icon And Not The Text)gets erased...... Can Anybody Suggest me where exactly the problem lies Any help is highly appreciated Note :: It happens Only In Case Of Win 2003 and Win. Xp

    C 1 Reply Last reply
    0
    • A Aabid

      Hello all i made an application in which i had to display icons next to menu item and i did it successfully and it works fine in windows 2000, vista, 7 but in case of windows 2003 and Xp, there lies a problem as if in case any tool tip is displayed over my context menu, the menu item over which the tool tip lies that menu item`s icon (Only Icon And Not The Text)gets erased...... Can Anybody Suggest me where exactly the problem lies Any help is highly appreciated Note :: It happens Only In Case Of Win 2003 and Win. Xp

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      Did you display the popup menu the way it is suggested here[^]? I mean this:

      SetForegroundWindow(hDlg);

      // Display the menu
      TrackPopupMenu( hSubMenu,
      TPM_RIGHTBUTTON,
      pt.x,
      pt.y,
      0,
      hDlg,
      NULL);

      PostMessage(hDlg, WM_NULL, 0, 0);

      I know this seems unrelated to the drawing part but who knows...

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

      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