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
Posted on 2000-12-05 07:25:00 by unknow
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.
Posted on 2000-12-05 10:15:00 by beginner
i want to add a third button to my DIALOG-BOX that send the program to tray ... :D Cheers,
Posted on 2000-12-05 12:10:00 by unknow
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 !
Posted on 2000-12-05 14:58:00 by (scalp)
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 ... ...
Posted on 2000-12-05 16:15:00 by unknow
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...
Posted on 2000-12-05 16:30:00 by moxy
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:-()
Posted on 2000-12-06 07:38:00 by 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
Posted on 2000-12-06 11:05:00 by (scalp)
painting the button yourself is not easy. Check out DrawFrameControl API. I'm sure it's much easier to use and implement ;)
Posted on 2000-12-06 20:55:00 by Iczelion