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

Thread: draw buffer

Hybrid View

  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,522

    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,522

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center