+[TC8.50b2] BG copy processed MB flickering
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately it's not possible to improve it, because this is a Windows dialog (created via resource editor), not a Delphi dialog where I could draw with double buffering. This is necessary because Delphi dialogs aren't thead-safe.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
There is an extended windows style, introduced in Windows XP SP1 - WS_EX_COMPOSITED:
http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543.aspx
http://msdn.microsoft.com/en-us/library/ms632680.aspx
Calling this during dialog initialization should help:
http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543.aspx
http://msdn.microsoft.com/en-us/library/ms632680.aspx
Calling this during dialog initialization should help:
Code: Select all
const
WS_EX_COMPOSITED = $02000000;
WM_INITDIALOG:
SetWindowLong(Handle,GWL_EXSTYLE,GetWindowLong(Handle,GWL_EXSTYLE) or WS_EX_COMPOSITED);
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Can you try it, please? I have added WS_EX_COMPOSITED to the background dialog now.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: