Results 1 to 4 of 4

Thread: How can I stop WM_PAINT for controls of a form?

  1. #1

    How can I stop WM_PAINT for controls of a form?

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

  2. #2

    How can I stop WM_PAINT for controls of a form?

    :roll: WM_ERASEBKGND :roll:
    There are only 10 types of people in this world; those who understand binary and those who don't.

  3. #3

    How can I stop WM_PAINT for controls of a form?

    Quote Originally Posted by Clootie
    :roll: WM_ERASEBKGND :roll:
    You are a genius! Is there nothing that you don't know?

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

  4. #4

    How can I stop WM_PAINT for controls of a form?

    :evil: nothing :twisted:
    There are only 10 types of people in this world; those who understand binary and those who don't.

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
  •