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

Thread: draw buffer

  1. #1
    Join Date
    May 2011
    Posts
    23

    draw buffer

    Got buffer with raw data. How to display it in MFC dialog and refresh it?. any source is appreciated.

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: draw buffer

    Use StretchDIBits function. You need to fill BITMAPINFO *lpBitsInfo with correct bitmap description, that matches the buffer structure, and pass the buffer itself as lpBits parameter.

    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

  3. #3
    Join Date
    May 2011
    Posts
    23

    Re: draw buffer

    What control to use to display it?.

  4. #4
    Join Date
    Jul 2002
    Posts
    2,543

    Re: draw buffer

    Static control with SS_BITMAP style. Or just CWnd-derived class with WM_PAINT handler calling StretchDIBits.

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