Results 1 to 3 of 3

Thread: WndProc - Disable WM_PAINT if using DirectX?

  1. #1

    WndProc - Disable WM_PAINT if using DirectX?

    When using DirectX in fullscreen, what sort of messages should I be disabling or handling differently?

    Code:
    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
    http://www.c5software.co.uk (site is being developed at the moment)

  2. #2

    Re: WndProc - Disable WM_PAINT if using DirectX?

    BUMP
    http://www.c5software.co.uk (site is being developed at the moment)

  3. #3

    WndProc - Disable WM_PAINT if using DirectX?

    Try setting the form's borderstyle to "none" or something along those lines.
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •