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 added support for CMYK JPEGs loading (patch 1476078) 2006-05-28 20:08:39 +00:00
cursor.png Add test for a custom cursor to the image sample. 2010-07-24 11:49:05 +00:00
descrip.mms Update compile support for OpenVMS 2009-01-19 06:20:52 +00:00
horse3.ani merged 2.4 branch into the trunk 2002-12-04 14:11:26 +00:00
horse_ag.pnm Applied patch [ 1183803 ] PNM: support for ascii grey + raw grey 2005-05-22 15:37:40 +00:00
horse_rg.pnm Applied patch [ 1183803 ] PNM: support for ascii grey + raw grey 2005-05-22 15:37:40 +00:00
horse.bmp Small correction to list ctrl and default button size. 1999-05-28 10:30:57 +00:00
horse.cur added cur and ico formats to the sample 2002-02-02 23:16:09 +00:00
horse.gif Added a bit of libJPEG 6.0b 1999-04-17 17:54:07 +00:00
horse.ico added cur and ico formats to the sample 2002-02-02 23:16:09 +00:00
horse.jpg Added a bit of libJPEG 6.0b 1999-04-17 17:54:07 +00:00
horse.pcx *** empty log message *** 1999-08-29 20:00:09 +00:00
horse.png Removed usage of GdkImlib 1998-10-24 17:12:05 +00:00
horse.pnm PNM horse 1999-08-29 19:55:41 +00:00
horse.tga added TGA handler (somewhat modified patch 1393912) 2006-10-29 18:58:25 +00:00
horse.tif Made db.h compile (removed this wxODBC_ONLY_FARWRD_XXXXXX), 1999-11-30 18:42:35 +00:00
horse.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
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 Rebake from clean wx tree. 2010-01-04 00:45:45 +00:00
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 corrected mac src due to new api changes 2001-08-06 15:57:14 +00:00
smile.xbm Artwork updates 2005-05-31 13:44:45 +00:00
smile.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
toucan.png added test image for alpha 2003-04-13 13:44:35 +00:00