Got buffer with raw data. How to display it in MFC dialog and refresh it?. any source is appreciated.:confused:
Printable View
Got buffer with raw data. How to display it in MFC dialog and refresh it?. any source is appreciated.:confused:
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
What control to use to display it?.
Static control with SS_BITMAP style. Or just CWnd-derived class with WM_PAINT handler calling StretchDIBits.