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

Thread: Bitmap

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

    Bitmap

    I have a window with scrollbars on it, in which I draw a bitmap. Everything works fine until the bitmap is scrolled out of view, and then back in. It simply disappears. Has anyone ever run into this before.


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Bitmap

    Check your WM_PAINT, WM_VSCROLL, and WM_HSCROLL handlers (you need them to accomplish what you are trying to do). They should be called whenever the bitmap needs to be drawn if scrolling takes place. You may have also miscalculated something in the redrawing of the bitmap given the current scroll position.

    Regards,

    Paul McKenzie


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