TC 9b10 x64: modal dialog becomes unmodal

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

TC 9b10 x64: modal dialog becomes unmodal

Post by *fleggy »

Hello,

this is probably MS bug but who knows...
- switch to Windows Classic theme
- select any file (e.g. History.txt in TCMD homedir)
- open any modal dialog (e.g. F5)
- hover mouse over TC button in the taskbar, wait until the menu appears and click RMB on it. The main TC windows should become active
- now you are allowed to use some hotkeys (CTRL+TAB, CTRL+T/W, SHIFT+HOME/END, CTRL+Q, etc...)
- press ALT+F7 and close the dialog
- now the focus is fully back in the main TC window and F5 dialog is still live

Thanks, Tom

Windows 7 Ultimate x64, Windows Classic theme
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it looks like Windows itself is enabling the TC window. I will check it in the debugger, but I don't think that I can do much about it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, no solution yet.
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Post by *fleggy »

Hi Christian, the workaround in beta 12 is perfect.

Thank you, Tom
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I tried returning the focus to the modal dialog, but GetLastActivePopup does NOT return the dialog handle in this case! It just returns the handle of the main window. So apparently it really is a Windows bug. But at least IsWindowEnabled returns false, so I can correctly detect the error.
Author of Total Commander
https://www.ghisler.com
Post Reply