Hiding App's form the Ativity-field..

Hi !
I need to hide my app from the activity-field at the bottom of windows. However, I want the icon for the application to be visible on the lower right of the screen next to the time, like the icon for the Interbase, or the volume-control...

Thanx !
/Erik N
Erik NAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MadshiConnect With a Mentor Commented:
Use this one to hide your window from the taskbar:

SetWindowLong(Application.Handle, GWL_EXSTYLE, GetWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
0
 
MadshiCommented:
Add this line in your project (*.dpr) right in the first line of the "begin .. end" block.

To show an icon in the systray (the area next to the clock) you should use one of those freeware trayIcon components or you can also directly use the API Shell_NotifyIcon.

A good trayIcon component is e.g. included in the free RX library (comes with full sources):

http://rx.demo.ru

Regards, Madshi.
0
 
MadshiCommented:
Ooops. In the meanwhile the rx library has it's own COM domain:

http://www.rxlib.com/
0
 
Erik NAuthor Commented:
Nice...
/Erik
0
All Courses

From novice to tech pro — start learning today.