| View previous topic :: View next topic |
| Author |
Message |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Oct 10, 2007 9:12 pm Post subject: to the toolbar? |
|
|
How do programs like msn and aim go to the toolbar when you close them as opposed to actually terminating the program.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Oct 10, 2007 9:15 pm Post subject: |
|
|
| By doing the icon stuff in WM_CLOSE then returning 0 in their wndproc to signify that the default handler need not be invoked.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Oct 11, 2007 6:20 am Post subject: |
|
|
If you mean the tray icons, you need use to Shell_NotifyIcon.
Just google that, or minimize to tray, and you should find tons of examples.
Edit, whoops just reread that use CloseWindow to minimize it inside the WM_CLOSE param:
| Code: | case WM_CLOSE:
CloseWindow( hWnd ); |
You might also have to handle the WM_NCLBUTTONDOWN call for the X button which would be done like this:
| Code: | case WM_NCLBUTTONDOWN:
switch( wParam )
{
case HTCLOSE:
CloseWindow( hWnd );
break;
} |
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Oct 11, 2007 2:12 pm Post subject: |
|
|
Don't really know how but if its delphi you can check out rEaKw0n's smuggle program source, I think its at the bypassing section.
It has also a pop-up menu in the tool bar.
|
|
| Back to top |
|
 |
|