Okay, an interesting one here. I need to set a toolbar application to be a topmost window. HOWEVER! I need to start menu/taskbar to stay absolutely top most. Is there any way to set a window to be always second topmost so that it remains above all other windows apart from the taskbar/startmenu.
I've tried playing with SetWindowPos and HWND_TOPMOST e.t.c. including getting a handle for the taskbar using FindWindow(_T("Shell_TrayWnd"), NULL); and then setting the taskbar to be topmost immediately after setting my toolbar to topmost.
I've also tried playing with WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED but to no avail.
If anyone knows how to do this I'd appreciate your help.