wxMemoryDC constructor now optionally accepts a wxBitmap parameter,

calling SelectObject itself if a valid bitmap is passed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-13 18:48:36 +00:00
parent 51ad652fa2
commit 432efcb004
26 changed files with 77 additions and 27 deletions

View File

@@ -41,13 +41,14 @@ can be reselected into another memory DC.
\membersection{wxMemoryDC::wxMemoryDC}\label{wxmemorydcctor}
\func{}{wxMemoryDC}{\void}
\func{}{wxMemoryDC}{\param{const wxBitmap\& }{bitmap = wxNullBitmap}}
Constructs a new memory device context.
Use the {\it Ok} member to test whether the constructor was successful
in creating a usable device context. Don't forget to select a bitmap
into the DC before drawing on it.
in creating a usable device context. If you don't pass a valid bitmap
to the constructor, don't forget to select a bitmap into the DC before
drawing on it.
\membersection{wxMemoryDC::SelectObject}\label{wxmemorydcselectobject}