How to hide MFC dialog to tray icon in the bottomright Toolbar
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Could somebody know how to hide MFC dialog to tray icon in the bottomright Toolbar? I can open the MFC dialog by click the tray icon or select some menu items I set.
They are two different things. You can create a tray icon using
Shell_NotifyIcon
. And you hide the dialog usingShowWindow(SW_HIDE)
. When the user clicks on the tray icon, you will get a notification message that you specified in theuCallbackMessage
parameter of theNOTIFYICONDATA
structure. There you can create a popup menu usingCreatePopupMenu
andTrackPopupMenu
.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)