Computing.Net > Forums > Programming > Hide systray programaticaly Win98SE

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Hide systray programaticaly Win98SE

Reply to Message Icon

Name: aj67my
Date: August 22, 2003 at 16:15:44 Pacific
OS: Win98SE
CPU/Ram: 32MB RAM @ 133MHz Pentium
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: jorgen
Date: August 22, 2003 at 19:53:01 Pacific
Reply:

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.


0

Response Number 2
Name: aj67my
Date: August 24, 2003 at 08:29:01 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


help .bat file Delphi PHun prgram!



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Hide systray programaticaly Win98SE

removing a systray icon www.computing.net/answers/programming/removing-a-systray-icon/17399.html

How do I hide a form on load vb.net www.computing.net/answers/programming/how-do-i-hide-a-form-on-load-vbnet/4597.html

Hide Another App's Process www.computing.net/answers/programming/hide-another-apps-process/14645.html