Valhalla Legends Forums Archive | Battle.net Bot Development | Minimizing to system tray

AuthorMessageTime
beaver
I got a couple of questions, I'm making a bot in C++ and I want it to minimize to the System Tray.  Do I have to resize my icon? Or does Windows do it on its own?  And if not what size does it have to be?  And what programs do you use to build interfaces in C++?
December 28, 2002, 9:02 PM
Eibro
You'll need to use the Shell_NotifyIcon() function included in the Win32 API (assuming you're coding for windows..)
I believe the icon has to be 16*16.

This is what MSDN has to say about the function.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shell_notifyicon.asp
December 28, 2002, 11:34 PM
MesiaH
im almost positive shell_notifyicon() will let you use any size image, as long as its a proper format.

it should do the resizing by itself, im almost positive.
December 28, 2002, 11:58 PM
Zakath
Yes, it'll resize any icon you want to use - although depending on how detailed the icon is, you may want to make a smaller version because it can get distorted.
December 30, 2002, 1:34 PM
ILurker
here is an easy ocx to use,
http://www.geocities.com/us_lurker/FlshTry.zip
February 9, 2003, 11:43 AM
ILurker
Nevermind the above post, here is a very easy source to use
- when you left click on the icon, a menu appears for "close/restore/or whatever you put"

- when you minimize your bot it goes to system tray

http://www.geocities.com/us_lurker/Systray.zip
February 9, 2003, 9:21 PM
Zakath
Did you not note that he's using C++?

Your VB source isn't very useful in that language.
February 10, 2003, 12:49 PM
ILurker
its not c++.... check again
February 10, 2003, 4:17 PM
Yoni
[quote]I got a couple of questions, I'm making a bot in C++ and I want it to minimize to the System Tray.  Do I have to resize my icon? Or does Windows do it on its own?  And if not what size does it have to be?  And what programs do you use to build interfaces in C++?[/quote]
He only said C++ twice...
February 10, 2003, 4:38 PM
ILurker
[quote]its not c++.... check again[/quote]

Hmm, thought he was talking about my post
February 10, 2003, 4:41 PM
St0rm.iD
owned again.
February 11, 2003, 9:11 PM

Search