All I want to do is browse for a bmp and display it scaled in a dialog based app....how?

  • Thread starter Thread starter Gregary
  • Start date Start date
G

Gregary

Guest
Apparently there is no possible way to manually load the bitmap from a file and scale it into the static control.

All the suggestions involving createCompatibleDC(...) just don't work.


And I have tried making my static control owner draw, creates a custom static class that responds to WM_DRAWITEM but then I get a ASSERT failure error in CStatic:: OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)


So apparently my DDX_Control(pDX, IDC_STATIC_BMP, m_staticBMP/*CBitmapCtrl*/) does not work....why?

The image I select may be larger or smaller than the dimensions of the staic control.

Continue reading...
 
Back
Top