What's wrong with my subclassing :confused:

I want the Edit Control stop flickering,
so KetilO adviced me to:

1. Subclass the edit control.
2. Do my own painting on a memory DC.
3. BitBlt memory DC to Edit Controls DC.

So,
I have Subclassed the Edit Control.
I am trying to do the painting....
I haven't figured out how to use BitBlt in this program...

:confused:
Posted on 2002-12-29 17:21:11 by The SharK
Shark,

Usually an edit control is not the problem with flickering, it happens because the parent window AND the edit control redraw at the same time so you get bad flickering because of it.

What I do with it is to set the parent window with a HOLLOW_BRUSH so that it does not repaint and I do not use the CS_VREDRAW or CS_HREDRAW styles in the WNDCLASSEX which forces repainting on both horizontal and vertical resize.

Regards,

hutch@movsd.com
Posted on 2002-12-29 17:39:07 by hutch--
Hi hutch,

But should I change the program, so I use a normal
window procedure (WinMain), instead of a DlgProc ?

I mean, I don't use the WNDCLASSEX structure in this program....:confused:
Posted on 2002-12-30 05:40:07 by The SharK