Forum Discussion
Neon5
Mar 28, 2022Brass Contributor
Task bar randomly and completely disappears
I have set up my first Windows 11 system. And here the Windows 11 task bar sometimes completely disappears. Completely = there is no grey line at the desktop bottom, and nothing happens if I move the...
Neon5
Apr 15, 2022Brass Contributor
Oh wait - there is one thing that TaskManager and Process Explorer have in common: Both show up in the task bar's tray section. That could be the key to implement a workaround: produce some ongoing dummy activity in the tray. Process Explorer was in the overflow section, which normally is invisible, so the dummy activity could be kept invisible.
Neon5
Apr 16, 2022Brass Contributor
As suspected, adding an icon the the tray will bring the task bar back:
BYTE b = 255;
HICON hi = CreateIcon(hInstance, 1, 1, 1, 1, &b, &b);
NOTIFYICONDATA nd = { sizeof nd, NULL, 1, 0, 0, hi };
Shell_NotifyIcon(NIM_ADD, &nd);
Shell_NotifyIcon(NIM_DELETE, &nd);
Now I will write a program that hooks into mouse input and will execute these five code lines every time the mouse is moved to the screen bottom. That will completely fix this issue for me.
BYTE b = 255;
HICON hi = CreateIcon(hInstance, 1, 1, 1, 1, &b, &b);
NOTIFYICONDATA nd = { sizeof nd, NULL, 1, 0, 0, hi };
Shell_NotifyIcon(NIM_ADD, &nd);
Shell_NotifyIcon(NIM_DELETE, &nd);
Now I will write a program that hooks into mouse input and will execute these five code lines every time the mouse is moved to the screen bottom. That will completely fix this issue for me.