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. Shell_NotifyIcon problem =>

Shell_NotifyIcon problem =>

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    GetMenu always fails when i try to get the menu of my taskbar icon. CMenu* menu = GetMenu(); if(menu == NULL) // always 0x00000000 return 0; any ideas what to do ? how can i work with menu items ? thanx:rose:

    T 1 Reply Last reply
    0
    • L Lost User

      GetMenu always fails when i try to get the menu of my taskbar icon. CMenu* menu = GetMenu(); if(menu == NULL) // always 0x00000000 return 0; any ideas what to do ? how can i work with menu items ? thanx:rose:

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      I bet you didn't create your window with a menu. Thus trying to get the menu fails. Just use LoadMenu to get the menu you wish to display from your resource file. Don't forget to get one of the sub menus. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

      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