❔ minimize to tray
how do I make the console application (no ui framework so far) minimize to tray when the user clicks the minimize button in the top right.
2 Replies
https://stackoverflow.com/questions/751944/net-console-application-in-system-tray will help you to minimize the console to the system tray. for detecting the minimised button being pressed you need to get the window handle and hook wndproc to something, probably WM_SIZE I guess
but yeah this isn't trivial, or even a particularly good idea
if you need these advanced features generally it's time to move to a UI framework that gives you direct control over the window
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.