Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to programaticaly hide the systray in Win98SE. My code does hide the systray for a brief moment but then it quickly comes back. Can someone advice me a posible solution to this re-apearing systray.
HWND Bar, Tray;
Bar = FindWindow("Shell_TrayWnd", NULL);
Tray = FindWindowEx(Bar, NULL, "TrayNotifyWnd", NULL);
ShowWindow(Tray, SW_HIDE);The program I am makeing is a joke, it pretends to delete the start button, clock, systray, task windows, taskbar, then desktop. Displays a message and puts everything back. The systray is the only thing holding me back.

Just a stab in the dark here, but maybe the window is invalidated after your call, in which case it gets a repaint msg from the system queue?
Guess you could subclass and peekmsg or set a hook? Maybe validate the window? Dunno, just guessing.

Thanks, Did some searching with these new terms, subclass, hook and peekmsg and found an article discussing this exact problem I am haveing.
http://www.pcmag.com/article2/0,4149,1163580,00.asp
Seems my firewall icon updates itself periodicaly, and thus brings the systray back.

![]() |
help .bat file
|
Delphi PHun prgram!
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |