Used some online code example to put a little project to display raw image. The display does not seem to work.
For some purposes, I like this to work with a dialog based MFC project.XDVView is derived from CScrollView.
see OnInitDialog() and OnDraw(CDC* pDC).8bit 768x756