flat assembler
Message board for the users of flat assembler.
Index
> Windows > dialogbox control flicker problem |
Author |
|
nmake 15 Dec 2012, 12:24
WS_CLIPCHILDREN and WS_CLIPSIBLINGS is your friend. Also engage WM_ERASEBKGND and return TRUE from it. Set hbrBackground brush to 0 in the WNDCLASSEX window structure (if using a non-dialog), and of course do double buffering if necessary in WM_PAINT. Spend as little time as possible doing calculations in WM_PAINT, do all calculations outside of WM_PAINT to save time in the WM_PAINT handler. Things you can do, create a dib section that is as large as the entire screen so you dont have to re-create it every time the window resizes. You save time that way.
|
|||
15 Dec 2012, 12:24 |
|
typedef 15 Dec 2012, 18:39
TIP: Your code formatting is eye straining.
|
|||
15 Dec 2012, 18:39 |
|
dave_30 16 Dec 2012, 18:44
nmake wrote: WS_CLIPCHILDREN and WS_CLIPSIBLINGS is your friend. Also engage WM_ERASEBKGND and return TRUE from it. Set hbrBackground brush to 0 in the WNDCLASSEX window structure (if using a non-dialog), and of course do double buffering if necessary in WM_PAINT. Spend as little time as possible doing calculations in WM_PAINT, do all calculations outside of WM_PAINT to save time in the WM_PAINT handler. Things you can do, create a dib section that is as large as the entire screen so you dont have to re-create it every time the window resizes. You save time that way. i've added WS_CLIPCHILDREN and now flicker is gone,thx. |
|||
16 Dec 2012, 18:44 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.