wxWidgets/samples/image
Vadim Zeitlin 5ed0415e3e Don't use bitmap still selected in wxMemoryDC in image sample.
The bitmap must be deselected from wxMemoryDC before being used in any other
way but the sample didn't do this. Fix this by simply destroying the DC as
soon as we don't need it, this makes bitmap available for other use as well.

Closes #12310.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-08-10 18:57:47 +00:00
..
canvas.cpp Don't use bitmap still selected in wxMemoryDC in image sample. 2010-08-10 18:57:47 +00:00
canvas.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
cmyk.jpg
cursor.png Add test for a custom cursor to the image sample. 2010-07-24 11:49:05 +00:00
descrip.mms
horse3.ani
horse_ag.pnm
horse_rg.pnm
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.tga
horse.tif
horse.xpm
image_vc7.vcproj Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
image_vc8.vcproj Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
image_vc9.vcproj Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
image.bkl Add test for a custom cursor to the image sample. 2010-07-24 11:49:05 +00:00
image.cpp Add test for a custom cursor to the image sample. 2010-07-24 11:49:05 +00:00
image.dsp Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
makefile.bcc Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
makefile.gcc Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
Makefile.in Add test for a custom cursor to the image sample. 2010-07-24 11:49:05 +00:00
makefile.unx
makefile.vc Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
makefile.wat Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
makemac6.mcp
smile.xbm
smile.xpm
toucan.png