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
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
What other controls do you have on the window? Try some flags like WS_CLIPSIBLINGS or WS_CLIPCHILDREN, i dont know...
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.
f0dder,
.elseif eax==WM_ERASEBKGND
return 1
.elseif.................
is this correct?
i got a syntax error after trying it to assemble.
-PUP, assembler newbie
.elseif eax==WM_ERASEBKGND
return 1
.elseif.................
is this correct?
i got a syntax error after trying it to assemble.
-PUP, assembler newbie
mov eax, 1
ret
ret
f0dder,
ok it doen't flicker anymore but the windows client area doesn't erase its background/updated.
-PUP
ok it doen't flicker anymore but the windows client area doesn't erase its background/updated.
-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).
f0dder,
ok. but if the background is visible which only contains a richedit?
sorry if i ask too much.
-PUP
ok. but if the background is visible which only contains a richedit?
sorry if i ask too much.
-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?
f0dder,
for you f0dder ill attach it, but its nothing, an application im just practicing. thanks.
-PUP, assembler newbie
for you f0dder ill attach it, but its nothing, an application im just practicing. thanks.
-PUP, assembler newbie
The only thing I would suggest is that you get the rect of your editbox's
and Validate those areas.
Zcoder....
and Validate those areas.
Zcoder....
well.. you could disable the "show window contents while draggin" option when your program runs..
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.
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....
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....
gud day,
thanks to all!
-PUP,
thanks to all!
-PUP,