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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC tray icon

MFC tray icon

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++designlinuxhelp
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.
  • C Offline
    C Offline
    conman110
    wrote on last edited by
    #1

    Hi folks! I want to program a tool that only stays as a tray-icon. My problem is how to design it in MFC. The application is a CWinApp, but without a Window in m_pMainWnd it closes immediately. How do I build an application that runs without a window? Do I need a valid hwnd for Shell_NotifyIcon()? (I tryed with NULL as hwnd and it seemed to work..) One solution may be to create a window but never show it. But perhaps there is a better way out there... :) Thanks! constantin

    I 1 Reply Last reply
    0
    • C conman110

      Hi folks! I want to program a tool that only stays as a tray-icon. My problem is how to design it in MFC. The application is a CWinApp, but without a Window in m_pMainWnd it closes immediately. How do I build an application that runs without a window? Do I need a valid hwnd for Shell_NotifyIcon()? (I tryed with NULL as hwnd and it seemed to work..) One solution may be to create a window but never show it. But perhaps there is a better way out there... :) Thanks! constantin

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      You could actually search this site... One of the very first articles here was a Tray icon application by Chris Maunder. Just search for tray icon etc. Iain.

      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