I got a basic window made from C++. What I need to do is whenever I click the Minimize button the window will be placed in the System Tray and whenever I double click on the Icon it will restore...
System Tray Icon in C++
Asked Answered
Some suggestions. 1) Tag it with the platform you're targeting both OS (Windows I guess, but I don't know ) and the API system you're using 2) Show us what you do have and explain what your don't know. –
Narcose
I use Window XP and WinAPI.. I want to know how could I put my program to system tray whenever I minimize it. –
Mei
possible duplicate of How do is the Win32 API used in C++ to minimize a window to the system tray? –
Wariness
check msdn about a struct: NOTIFYICONDATA and a function:
BOOL Shell_NotifyIcon( DWORD dwMessage,PNOTIFYICONDATA lpdata);
and also a demo here.
Hope you can understand:)
what if I want to show/hide systems icon like network/volume/microphone? –
Vtehsta
You will need to use Shell_NotifyIcon to interact with the notification area (system tray).
how could I used Shell_NotifyIcon? –
Mei
what if I want to show/hide systems icon like network/volume/microphone? –
Vtehsta
@Vtehsta sounds like you should just ask this as a question. –
Arcboutant
check msdn about a struct: NOTIFYICONDATA and a function:
BOOL Shell_NotifyIcon( DWORD dwMessage,PNOTIFYICONDATA lpdata);
and also a demo here.
Hope you can understand:)
what if I want to show/hide systems icon like network/volume/microphone? –
Vtehsta
© 2022 - 2024 — McMap. All rights reserved.