How to copy underlying bitmap pointed by HBITMAP

  • Thread starter Thread starter Yan Yang
  • Start date Start date
Y

Yan Yang

Guest
I want to save the bitmap pointed by a HBITMAP pointer:

HBITMAP original = CMFCToolBar::GetImages()->GetImageWell();

Since the CMFCToolBarImages* obtained from CMFCToolBar::GetImages() will be changed, I want to save the bitmap before changing then set it back later by calling

CMFCToolBar::GetImages()->AddImage(original, 32);

How can I create a bitmap to save the image pointed by "original"?

Thanks in advance.

Continue reading...
 
Back
Top