well, i want to make a program like 'getright download files', where you get 3 buttons with 3 options:
first - tray
second - minimize
third - close
what can i add this first button and when the user click send to tray ?
I know stuff about tray ...
excuse my bad english ;)
thx in advance
I'm not sure what your problem is.
But, there's an example of tray icon in Iczelion's Tutorial 23
at this website.
Hope that helps.
i want to add a third button to my DIALOG-BOX that send the program to tray ... :D
Cheers,
look at scalper.cjb.net
the prog "killer" contain 2 proc (addtotray and removefromtray) that do this
but as i remember, this code use what Icz did, so you should look there too !
i want to make 'like getright' .. when you download a file with getright ... this window has three buttons ... one to send to tray, other to minimize and othter to CLOSE the window ...
...
He means a send to tray button on the title bar contols.
On getright there is a send to tray button besides the minimize button. I think you have to Draw the whole title bar yourself and add the sendtotray,minimize,maximize/restore,&close button as bitmaps. Look up CreateWindowEx on how to create a static control with the ownerdraw option, then when the window sends the WM_DRAWITEM msg you can get the dc off one of the params and bitblt the bitmap onto it. Or there may be a way to only draw the sendtotray button besides the minimize button but i'm not sure...
As (Scalp) and Beginner say, you should have a look at the Iczelion Tut 23. It explains all you want.
If you want I have made a prog which uses TrayIcon.
Look at my Homepage at
-http://perso.wanadoo.fr/a-la-maison
or at -http://www.chez.com/vombonjour
Vom-bonjour:-()
no, he means he want a new button on the title bar.
for that i think that each time you receive a WM_PAINT msg
you should draw a small button (but i'm don't sure you can
acces title bar area
painting the button yourself is not easy. Check out DrawFrameControl API. I'm sure it's much easier to use and implement ;)