PDA

View Full Version : WndProc - Disable WM_PAINT if using DirectX?



Gadget
22-06-2004, 06:38 PM
When using DirectX in fullscreen, what sort of messages should I be disabling or handling differently?


My WndProc currently looks like this:-

case Message.Msg of
WM_ERASEBKGND:
begin
Message.Result := 1;
Exit;
end;
end;
inherited;
The WM_ERASEBKGND disable is working fine, that solved a a flicker issue. But when I move a form around the screen I get a kind of shimmer near the edges, how can I stop this form happening?

Thanks =D

Gadget
23-06-2004, 07:21 AM
BUMP

Useless Hacker
23-06-2004, 08:47 PM
Try setting the form's borderstyle to "none" or something along those lines.