Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Avoid flickering...

Avoid flickering...

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Visan
    wrote on last edited by
    #1

    I draw my bitmap (OnDraw function) in my CScrollView derived class using StretchBlt function... I want to avoid flickering when resizing and scrolling view.. Can anybody help me?

    B B 2 Replies Last reply
    0
    • D Daniel Visan

      I draw my bitmap (OnDraw function) in my CScrollView derived class using StretchBlt function... I want to avoid flickering when resizing and scrolling view.. Can anybody help me?

      B Offline
      B Offline
      Bernhard
      wrote on last edited by
      #2

      did you handle the WM_ERASEBKGND - Message?

      BOOL CMyView::OnEraseBkgnd(CDC* pDC)
      {
      // TODO: Add your message handler code here and/or call default

      //	return CWnd::OnEraseBkgnd(pDC);
      return true;
      

      }

      (i had several problems doing this with ScrollViews.. but maybe you achieve this) have a nice one bernhard


      Sometimes I think the surest sign for intelligent life elsewhere in the universe is that none of them ever tried to contact us.

      R 1 Reply Last reply
      0
      • B Bernhard

        did you handle the WM_ERASEBKGND - Message?

        BOOL CMyView::OnEraseBkgnd(CDC* pDC)
        {
        // TODO: Add your message handler code here and/or call default

        //	return CWnd::OnEraseBkgnd(pDC);
        return true;
        

        }

        (i had several problems doing this with ScrollViews.. but maybe you achieve this) have a nice one bernhard


        Sometimes I think the surest sign for intelligent life elsewhere in the universe is that none of them ever tried to contact us.

        R Offline
        R Offline
        RockNix
        wrote on last edited by
        #3

        try double-buffering www.klangwerker.de/developer/english/double_buf.htm (Didn`t I see this post on www.codeguru.com ) CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

        1 Reply Last reply
        0
        • D Daniel Visan

          I draw my bitmap (OnDraw function) in my CScrollView derived class using StretchBlt function... I want to avoid flickering when resizing and scrolling view.. Can anybody help me?

          B Offline
          B Offline
          Braulio Dez
          wrote on last edited by
          #4

          Yep, take a look at a class called CMemDC, maybe this class can help you ( you can find that here or in CodeGuru). HTH Braulio

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups