PDA

View Full Version : How can I stop WM_PAINT for controls of a form?



Gadget
20-08-2003, 12:59 PM
This might be a stupid question, but is there any way I can do this in WndProc? I assumed I wouldn't need WM_PAINT at all, due to it being a DirectX application, but that results in nothing being painted...

The problem I have is my DX button decends from TControl, which when I am flipping seems to leave a flicker of a black rect where I move my button in code (only for about 1 frame, it dissapears once its blitted another frame. Is it possible that my flip loop is not correct?

Any advice appreciated.

I am not using FlipToGDI btw!

Clootie
20-08-2003, 05:29 PM
:roll: WM_ERASEBKGND :roll:

Gadget
20-08-2003, 08:21 PM
:roll: WM_ERASEBKGND :roll:

You are a genius! Is there nothing that you don't know?

:shock:

Clootie
20-08-2003, 09:31 PM
:evil: nothing :twisted: