cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 763 Location: Eastman, GA
|
Posted: Tue Aug 28, 2012 5:29 pm Post subject: Double Buffer Window |
|
|
I've been having my controls fail to redraw a lot lately between DirectX apps and DWM spoofing things up.
The trick is, double buffer your window. This will keep your controls from not being redrawn properly.
This must be declared before the dialog is shown.
Code: |
LOADLIB user32.dll
%%knockout = @lib(user32,SetWindowLongA,INT:,%%k,-20,INT: $2000000)
FREELIB user32.dll
Dialog Show
|
|
|