wxWidgets/samples
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
..
access Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
animate Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
artprov Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
aui Add support for auto-orientable toolbars to AUI. 2010-07-23 23:33:10 +00:00
calendar Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
caret Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
clipboard Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
collpane Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
combo Use wxComboCtrl::SetTextCtrlStyle() in the combo sample 2010-06-13 10:00:14 +00:00
config Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
console move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
controls Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
dataview Add wxDataViewCtrl::{Set,Get}CurrentItem(). 2010-08-10 12:53:03 +00:00
debugrpt Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
dialogs Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
dialup Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
display Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
dll Check in samples/dll for WXUSINGDLL. 2010-04-30 16:46:22 +00:00
dnd Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
docview No changes, just slightly improve docview sample code. 2010-07-23 23:33:27 +00:00
dragimag Use wxDELETE() and wxDELETEA() when possible. 2010-06-20 18:18:23 +00:00
drawing Allow passing multi-line strings to wxDC::DrawText(), even under MSW. 2010-07-23 23:32:52 +00:00
erase Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
event Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
except Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
exec Use wxDELETE() and wxDELETEA() when possible. 2010-06-20 18:18:23 +00:00
flash Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
font Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
fswatcher Use wxDELETE() and wxDELETEA() when possible. 2010-06-20 18:18:23 +00:00
grid Remove selection showing code from the grid sample. 2010-07-24 11:56:11 +00:00
help Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
htlbox Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
html Use wxDELETE() and wxDELETEA() when possible. 2010-06-20 18:18:23 +00:00
image Don't use bitmap still selected in wxMemoryDC in image sample. 2010-08-10 18:57:47 +00:00
internat Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
ipc Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
joytest Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
keyboard Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
layout Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
listctrl Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
mdi Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
mediaplayer no real change: just follow wx typical commenting style and separe // from the following characters with a space 2010-07-25 09:52:13 +00:00
memcheck Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
menu Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
mfc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
minimal Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
nativdlg Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
notebook Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
oleauto Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
opengl Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
ownerdrw Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
popup Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
power Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
printing Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
propgrid Moved wxPGProperty::SetFlag() to protected API since it does not have any side-effects that are usually desired in the user code. Added wxPGProperty::SetAutoUnspecified() since wxPG_PROP_AUTO_UNSPECIFIED can no longer be set (conveniently) with SetFlag(). 2010-08-08 12:22:08 +00:00
regtest Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
render Add ability to render checkbox in undeterminate state, fixes #12290: wxRendererGTK does not support wx.CONTROL_UNDETERMINED for checkboxes 2010-07-29 16:57:09 +00:00
ribbon Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
richtext Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
sashtest Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
scroll Store the result of wxWindow::NewControlId() in wxWindowIDRef. 2010-07-23 23:32:56 +00:00
shaped Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
sockets Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
sound Use wxDELETE() and wxDELETEA() when possible. 2010-06-20 18:18:23 +00:00
splash Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
splitter Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
statbar Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
stc Remove duplicate sample.xpm inclusion from stc sample. 2010-06-25 08:47:17 +00:00
svg Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
taborder Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
taskbar Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
text Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
thread Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
toolbar Use wxDELETE() and wxDELETEA() when possible. 2010-06-20 18:18:23 +00:00
treectrl Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
typetest Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
uiaction Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
validate Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
vscroll Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
widgets Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
wizard Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
wrapsizer Really set svn:eol-style property. 2010-07-17 14:55:45 +00:00
xrc Correct the name of the XPM file containing the icon in xrc sample. 2010-06-20 18:18:36 +00:00
Info.plist Remove executable bits from plist files. 2010-07-22 12:09:10 +00:00
makefile.bcc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
makefile.gcc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
Makefile.in use hand-written samples/Makefile.in 2003-08-07 13:10:04 +00:00
makefile.vc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
makefile.wat Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
sample_os2.ico Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
sample.ico added common (for all samples) .ico/.r/.rc files 2003-08-06 12:27:23 +00:00
sample.r making proper resource-fork apps 2007-05-05 17:22:09 +00:00
sample.rc added wxUSE_NO_MANIFEST=0 for easier testing 2003-08-14 14:08:53 +00:00
sample.rc4 Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
sample.rcO Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
sample.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
samples.bkl Adding wxUIActionSimulator, a class for programmatically controlling the mouse and keyboard. 2010-03-06 20:09:23 +00:00
samples.dsw Add missing samples to samples.dsw. 2010-05-27 17:07:30 +00:00