CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: bitmap

  1. #1
    Join Date
    Apr 1999
    Location
    Scottsdale, Arizona
    Posts
    28

    bitmap

    I have a bitmap that is displayed in a window, and when I scroll the bitmap out of view and then back, it
    disappears. Has anyone ever encountered this?


  2. #2
    Join Date
    May 1999
    Posts
    3

    Re: bitmap

    Sounds like a painting problem. Are you displaying the bitmap from a non-paint/non-draw function? If so, that is your problem.



  3. #3
    Join Date
    Apr 1999
    Location
    Scottsdale, Arizona
    Posts
    28

    Re: bitmap

    No. I'm doing the drawing in response to a WM_DRAW message, which causes the OnDraw() member function of my view to be called (its a doc\view app). So in my view's OnDraw() function, I call the bitmap's draw() function. It works fine except when the bitmap is scrolled out of view and then back in. Which doesn't make sense. I can scroll the bitmap around anywhere inside the view window, and it always gets redrawn correctly, but the second it leaves the view, it never comes back. Weird.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured