Emulate AutoRedraw

  • Thread starter Thread starter Alessandro Baraldi
  • Start date Start date
A

Alessandro Baraldi

In my Form i Build with Window's Static Form a little graphic control
Child of my Form.
It work good, bud my problem is that it has not AutoRedraw
properties...!

So if i move my Form outside MDI_Border the control was graphicaly
destroied...!
In my mind i try to subclass Form's WM_PAINT message ad repeat the
Graphical aspect of my WindowControl, work but not really good.

Any one have an idea of messages i need to check...?

WM_MOVE give a very bad results... too much regeneration of Window
make slowly the execution...

I Hope this desctiption was clear.

It's so hard or i'm lost in nothing...?

Thanks.

@Alex
 
Ciao Alessandro - non capisco - scrive in italiano

Il mio inglese è così pessimo....? ;-) con tutti i soldi che ho speso
per i corsi... ;-)

Ho creato una Window con le API nella quale sfrutto hDC per fare un
disegno grafico.
La Window la posiziono nella Form e con SetParent la rendo figlia
della Form(access).

Quando però apro un InputBox o un MsgBox che si sovrappone alla
Window(Static) questa non viene ridisegnata, quindi si vede male...!

Ho Subclassato il messaggio WM_PAINT della Form(principale) per
effettuare
il Redraw della Window(Static) ma l'effetto finale è pessimo.

Se intercetto anche il WM_MOVE si rallenta tutto in modo enorme.

Purtroppo contrariamente a VB mi servirebbe gestire una specie di
AutoRedraw.

Grazie.

@Alex
 
Back
Top