ShowWindow() does not open properly after using "Fast User Switching" feature of windows 7

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all,
I am having a weird problem using this "Fast User Switching" feature of windows 7 (It happens when you do a Ctrl+Alt+Del and select the "Switch User" option).
Ive got an application which has a sort of menu format and it uses ShowWindow(win, SW_SHOW) to prompt different windows/forms depending on which button is clicked on. If I keep this application running at the background and I perform a "Switch User"
operation (Even if I select the exact same user account to switch into), my application will stop functioning properly. It calls out different windows but instead of the windows being prompted up, the windows will only appear among the taskbar and I am unable
to un-minimize the windows.
Few points which might help in solving this problem:
1. When I do Aero-tabbing/tab hovering, I can actually see all contents in the minimized-windows.
2. I tried switching back to the classic theme but it doesnt help.
3. I tried using SW_RESTORE, SW_SHOWNORMAL, but it doesnt help too.

I spent the whole afternoon digging through my brains and searching online for help, but I cant find a solution to this.
If I still cant find an answer, I will have to disable the Fast User Switching feature, but thats very very not preferred!
Thank you for spending your time helping me out!

Benjamin

View the full article
 
Back
Top