gud day,

why does my richedit flickers when i resized my window and the other controls.... just wanna know why? do i need to add some stuff?

-PUP, assembler newbie
Posted on 2006-06-20 22:15:02 by PUP
What other controls do you have on the window? Try some flags like WS_CLIPSIBLINGS or WS_CLIPCHILDREN,  i dont know...
Posted on 2006-06-20 23:26:32 by comrade
Also, if your entire client area is covered with controls, trap WM_ERASEBKGND in your main WindowProc and have it do nothing but return 1.
Posted on 2006-06-21 05:01:21 by f0dder
f0dder,

.elseif eax==WM_ERASEBKGND
    return 1
.elseif.................

is this correct?
i got a syntax error after trying it to assemble.

-PUP, assembler newbie
Posted on 2006-06-21 05:21:59 by PUP
mov eax, 1
ret
Posted on 2006-06-21 05:25:01 by f0dder
f0dder,

ok it doen't flicker anymore but the windows client area doesn't erase its background/updated.

-PUP
Posted on 2006-06-21 05:29:57 by PUP

f0dder,

ok it doen't flicker anymore but the windows client area doesn't erase its background/updated.

-PUP

Well, Also, if your entire client area is covered with controls, trap WM_ERASEBKGND in your main WindowProc and have it do nothing but return 1.

The trick effectively stops windows from erasing/re-painting the background, so you should only use it if the backgrouns isn't visible (ie., you have the entire client area covered).
Posted on 2006-06-21 05:32:49 by f0dder
f0dder,

ok. but if the background is visible which only contains a richedit?
sorry if i ask too much.

-PUP
Posted on 2006-06-21 05:45:15 by PUP

ok. but if the background is visible which only contains a richedit?

If the richedit covers the entire client area, the background isn't visible :)


sorry if i ask too much.

No problem, we're here to help. As long as people do at least a tiny bit of effort themselves.

Can you make a .zip with your .exe and .asm file so we can have a look?
Posted on 2006-06-21 05:53:28 by f0dder
f0dder,

for you f0dder ill attach it, but its nothing, an application im just practicing. thanks.

-PUP, assembler newbie
Attachments:
Posted on 2006-06-21 07:40:05 by PUP
The only thing I would suggest is that you get the rect of your editbox's
and Validate those areas.

Zcoder....
Posted on 2006-06-21 08:11:00 by Zcoder
well.. you could disable the "show window contents while draggin" option when your program runs..
Posted on 2006-06-21 09:20:23 by lone_samurai5

well.. you could disable the "show window contents while draggin" option when your program runs..

No. Plain no. NEVER change a global setting like that from an application.
Posted on 2006-06-21 09:40:31 by f0dder
What you have going on is that the form is being painted then the control
that is twise the painting going on, so Validate the form area's behind the
controls so that there is only one paint job down which is the control being
painted.

Zcoder....
Posted on 2006-06-22 04:40:30 by Zcoder
gud day,

thanks to all!

-PUP,
Posted on 2006-06-23 04:40:17 by PUP