// 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;
SystemParametersInfo(38 /*SPI_GETDRAGFULLWINDOWS*/, 0, &b, 0);
// 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;
SystemParametersInfo(38 /*SPI_GETDRAGFULLWINDOWS*/, 0, &b, 0);
wxAuiFloatingFrame::~wxAuiFloatingFrame()
{
// if we do not do this, then we can crash...
wxAuiFloatingFrame::~wxAuiFloatingFrame()
{
// if we do not do this, then we can crash...
{
// systems without solid window dragging need to be
// handled slightly differently, due to the lack of
{
// systems without solid window dragging need to be
// handled slightly differently, due to the lack of
- m_last3_rect = m_last2_rect;
- m_last2_rect = m_last_rect;
- m_last_rect = win_rect;
+ m_last3Rect = m_last2Rect;
+ m_last2Rect = m_lastRect;
+ m_lastRect = winRect;
// However still update the internally stored position to avoid
// snapping back to the old one later.
// However still update the internally stored position to avoid
// snapping back to the old one later.
- m_last3_rect = m_last2_rect;
- m_last2_rect = m_last_rect;
- m_last_rect = win_rect;
+ m_last3Rect = m_last2Rect;
+ m_last2Rect = m_lastRect;
+ m_lastRect = winRect;
- int horiz_dist = abs(win_rect.x - m_last3_rect.x);
- int vert_dist = abs(win_rect.y - m_last3_rect.y);
+ int horiz_dist = abs(winRect.x - m_last3Rect.x);
+ int vert_dist = abs(winRect.y - m_last3Rect.y);
- m_last3_rect = m_last2_rect;
- m_last2_rect = m_last_rect;
- m_last_rect = win_rect;
+ m_last3Rect = m_last2Rect;
+ m_last2Rect = m_lastRect;
+ m_lastRect = winRect;
- OnMoving(event.GetRect(), dir);
+ if ( event.GetEventType() == wxEVT_MOVING )
+ OnMoving(event.GetRect(), dir);
+ else
+ OnMoving(wxRect(event.GetPosition(),GetSize()), dir);
}
}
void wxAuiFloatingFrame::OnMoving(const wxRect& WXUNUSED(window_rect), wxDirection dir)
{
// notify the owner manager that the pane is moving
}
}
void wxAuiFloatingFrame::OnMoving(const wxRect& WXUNUSED(window_rect), wxDirection dir)
{
// notify the owner manager that the pane is moving
void wxAuiFloatingFrame::OnMoveFinished()
{
// notify the owner manager that the pane has finished moving
void wxAuiFloatingFrame::OnMoveFinished()
{
// notify the owner manager that the pane has finished moving