November 19th, 2012 01:11 AM
#1
draw buffer
Got buffer with raw data. How to display it in MFC dialog and refresh it?. any source is appreciated.
November 19th, 2012 01:54 AM
#2
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
November 19th, 2012 09:45 AM
#3
Re: draw buffer
What control to use to display it?.
November 19th, 2012 01:00 PM
#4
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
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks