Oops, test for parent being NULL in DoModalShow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -505,20 +505,14 @@ Sets the validity member (does not affect the bitmap data).
|
|||||||
|
|
||||||
\membersection{wxBitmap::SetPalette}\label{wxbitmapsetpalette}
|
\membersection{wxBitmap::SetPalette}\label{wxbitmapsetpalette}
|
||||||
|
|
||||||
\func{void}{SetPalette}{\param{wxPalette* }{palette}}
|
\func{void}{SetPalette}{\param{const wxPalette\& }{palette}}
|
||||||
|
|
||||||
Sets the associated palette: it will be deleted in the wxBitmap
|
Sets the associated palette.
|
||||||
destructor, so if you do not wish it to be deleted automatically,
|
|
||||||
reset the palette to NULL before the bitmap is deleted.
|
|
||||||
|
|
||||||
\wxheading{Parameters}
|
\wxheading{Parameters}
|
||||||
|
|
||||||
\docparam{palette}{The palette to set.}
|
\docparam{palette}{The palette to set.}
|
||||||
|
|
||||||
\wxheading{Remarks}
|
|
||||||
|
|
||||||
The bitmap object owns the palette once this has been called.
|
|
||||||
|
|
||||||
\wxheading{See also}
|
\wxheading{See also}
|
||||||
|
|
||||||
\helpref{wxPalette}{wxpalette}
|
\helpref{wxPalette}{wxpalette}
|
||||||
|
@@ -195,3 +195,21 @@ will be smoother if you move the image when it is shown.
|
|||||||
|
|
||||||
Shows the image. Call this at least once when dragging.
|
Shows the image. Call this at least once when dragging.
|
||||||
|
|
||||||
|
\membersection{wxDragImage::UpdateBackingFromWindow}\label{wxdragimageupdatebackingfromwindow}
|
||||||
|
|
||||||
|
\constfunc{bool}{UpdateBackingFromWindow}{\param{wxDC\&}{ windowDC}, \param{wxMemoryDC\&}{ destDC},
|
||||||
|
\param{const wxRect\&}{ sourceRect}, \param{const wxRect\&}{ destRect}}
|
||||||
|
|
||||||
|
Override this if you wish to draw the window contents to the backing bitmap
|
||||||
|
yourself. This can be desirable if you wish to avoid flicker by not having to
|
||||||
|
redraw the updated window itself just before dragging, which can cause a flicker just
|
||||||
|
as the drag starts. Instead, paint the drag image's backing bitmap to show the appropriate
|
||||||
|
graphic {\it minus the objects to be dragged}, and leave the window itself to be updated
|
||||||
|
by the drag image. This can provide eerily smooth, flicker-free drag behaviour.
|
||||||
|
|
||||||
|
The default implementation copies the window contents to the backing bitmap. A new
|
||||||
|
implementation will normally copy information from another source, such as from its
|
||||||
|
own backing bitmap if it has one, or directly from internal data structures.
|
||||||
|
|
||||||
|
This function is available in wxGenericDragImage only.
|
||||||
|
|
||||||
|
@@ -346,6 +346,7 @@ void wxDialog::DoShowModal()
|
|||||||
if ( !oldFocus )
|
if ( !oldFocus )
|
||||||
{
|
{
|
||||||
oldFocus = parent;
|
oldFocus = parent;
|
||||||
|
if (parent)
|
||||||
hwndOldFocus = (HWND) parent->GetHWND();
|
hwndOldFocus = (HWND) parent->GetHWND();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user