From 20d64475522d68b88449740ae3ce0d2b00699b39 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 1 Nov 2006 11:53:54 +0000 Subject: [PATCH] Compile fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/floatpane.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 595a0a5629..a985e385cf 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -32,6 +32,10 @@ #ifndef WX_PRECOMP #endif +#ifdef __WXMSW__ +#include "wx/msw/private.h" +#endif + IMPLEMENT_CLASS( wxFloatingPane, wxFloatingPaneBaseClass ) wxFloatingPane::wxFloatingPane(wxWindow* parent, @@ -56,17 +60,21 @@ wxFloatingPane::wxFloatingPane(wxWindow* parent, // find out if the system supports solid window drag. // on non-msw systems, this is assumed to be the case - #ifdef __WXMSW__ - BOOL b = TRUE; +#ifdef __WXMSW__ + bool b = TRUE; SystemParametersInfo(38 /*SPI_GETDRAGFULLWINDOWS*/, 0, &b, 0); m_solid_drag = b ? true : false; - #endif +#endif SetExtraStyle(wxWS_EX_PROCESS_IDLE); } wxFloatingPane::~wxFloatingPane() { + // if we do not do this, then we can crash... + if(m_owner_mgr && m_owner_mgr->m_action_window == this) { + m_owner_mgr->m_action_window = NULL; + } m_mgr.UnInit(); } -- 2.45.2