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. How to remove context menu created from taskbar ?

How to remove context menu created from taskbar ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 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.
  • V Offline
    V Offline
    vgrigor1
    wrote on last edited by
    #1

    I create context menu, receiving OnRButtonDown from taskbar. But how to detect that user clicked on someone else place of desktop ? - To destroy menu. Or is it possible to create menu that auto-destroying, when loosed focus ? thanks. ______________ I found solution in MSDN search file sample: CQA0211.exe With installing hooks, and subclassing system windows... Does it the right way to implement hiding menu ? (seems not adequate)

    S 1 Reply Last reply
    0
    • V vgrigor1

      I create context menu, receiving OnRButtonDown from taskbar. But how to detect that user clicked on someone else place of desktop ? - To destroy menu. Or is it possible to create menu that auto-destroying, when loosed focus ? thanks. ______________ I found solution in MSDN search file sample: CQA0211.exe With installing hooks, and subclassing system windows... Does it the right way to implement hiding menu ? (seems not adequate)

      S Offline
      S Offline
      Sivaji
      wrote on last edited by
      #2

      Ru using TrackpopUpMenu() function call or u r using u r own customised function? If u r using TrackPopupMenu() call once u chech hwnd parameter.

      V 1 Reply Last reply
      0
      • S Sivaji

        Ru using TrackpopUpMenu() function call or u r using u r own customised function? If u r using TrackPopupMenu() call once u chech hwnd parameter.

        V Offline
        V Offline
        vgrigor1
        wrote on last edited by
        #3

        I USED TrackPopupMenu, but menu does not disappear, if focus is loosed. I asked - why it can happen?

        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