flickering problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vani

    #1

    flickering problem

    Hi
    I am fresher in VC++. I am working on a VC++ Project.
    I have a serious flickering problem when i am resizing
    the window.
    Please help me.

    vani
  • Doug Forster

    #2
    Re: flickering problem

    Hi,

    One approach is to intercept WM_ENTERSIZEMOV E and WM_EXITSIZEMOVE messages
    to detect the start and end of the resizing operation and set a flag during
    the move to stop painting until the drag finishes.

    Cheers
    Doug Forster

    "vani" <vanisri@yahoo. com> wrote in message
    news:0ad301c389 19$29baedd0$a10 1280a@phx.gbl.. .[color=blue]
    > Hi
    > I am fresher in VC++. I am working on a VC++ Project.
    > I have a serious flickering problem when i am resizing
    > the window.
    > Please help me.
    >
    > vani[/color]


    Comment

    • vani

      #3
      Re: flickering problem


      Thanks for the reply.
      I am working on the approach u told me.Once i get some
      output i will let u know.
      [color=blue]
      >-----Original Message-----
      >Hi,
      >
      >One approach is to intercept WM_ENTERSIZEMOV E and[/color]
      WM_EXITSIZEMOVE messages[color=blue]
      >to detect the start and end of the resizing operation and[/color]
      set a flag during[color=blue]
      >the move to stop painting until the drag finishes.
      >
      >Cheers
      >Doug Forster
      >
      >"vani" <vanisri@yahoo. com> wrote in message
      >news:0ad301c38 919$29baedd0$a1 01280a@phx.gbl. ..[color=green]
      >> Hi
      >> I am fresher in VC++. I am working on a VC++ Project.
      >> I have a serious flickering problem when i am resizing
      >> the window.
      >> Please help me.
      >>
      >> vani[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Al

        #4
        Re: flickering problem

        Best way is to remove CS_VREDRAW and CS_HREDRAW in the class style. Also,
        calculating the new area to be drawn and only drawing there (if you don't
        need to redraw the old area) will help a ton.

        --
        remove underscores to email

        "Doug Forster" <doug_ZAPTHIS_A T_TONIQ_ZAPTHIS _co.nz> wrote in message
        news:%23OU20XTi DHA.2984@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > Hi,
        >
        > One approach is to intercept WM_ENTERSIZEMOV E and WM_EXITSIZEMOVE messages
        > to detect the start and end of the resizing operation and set a flag[/color]
        during[color=blue]
        > the move to stop painting until the drag finishes.[/color]


        Comment

        • Ferdinand Oeinck

          #5
          Re: flickering problem

          Yes, I argee with that, remove CS_VREDRAW and CS_HREDRAW. The list of
          rectangles to re-draw can be gotten from ::GetUpdateRgn and then
          ::GetRegionData . Clip your datastructure according to this list.

          Ferdinand.



          "Al" <a_wad_dell@co_ dest_rike.com> wrote in message
          news:ulbzQ4YkDH A.1960@TK2MSFTN GP12.phx.gbl...[color=blue]
          > Best way is to remove CS_VREDRAW and CS_HREDRAW in the class style. Also,
          > calculating the new area to be drawn and only drawing there (if you don't
          > need to redraw the old area) will help a ton.
          >
          > --
          > remove underscores to email
          >
          > "Doug Forster" <doug_ZAPTHIS_A T_TONIQ_ZAPTHIS _co.nz> wrote in message
          > news:%23OU20XTi DHA.2984@TK2MSF TNGP11.phx.gbl. ..[color=green]
          > > Hi,
          > >
          > > One approach is to intercept WM_ENTERSIZEMOV E and WM_EXITSIZEMOVE[/color][/color]
          messages[color=blue][color=green]
          > > to detect the start and end of the resizing operation and set a flag[/color]
          > during[color=green]
          > > the move to stop painting until the drag finishes.[/color]
          >
          >[/color]




          Comment

          Working...