removing unused flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -165,7 +165,6 @@ public:
|
|||||||
// void SetHWND(WXHWND hWnd) { m_hWnd = hWnd; }
|
// void SetHWND(WXHWND hWnd) { m_hWnd = hWnd; }
|
||||||
virtual WXWidget GetHandle() const { return (WXWidget) NULL ; }
|
virtual WXWidget GetHandle() const { return (WXWidget) NULL ; }
|
||||||
|
|
||||||
bool GetUseCtl3D() const { return m_useCtl3D; }
|
|
||||||
bool GetTransparentBackground() const { return m_backgroundTransparent; }
|
bool GetTransparentBackground() const { return m_backgroundTransparent; }
|
||||||
void SetTransparent(bool t = TRUE) { m_backgroundTransparent = t; }
|
void SetTransparent(bool t = TRUE) { m_backgroundTransparent = t; }
|
||||||
|
|
||||||
@@ -256,8 +255,6 @@ public:
|
|||||||
static wxWindowMac* s_lastMouseWindow ;
|
static wxWindowMac* s_lastMouseWindow ;
|
||||||
private:
|
private:
|
||||||
protected:
|
protected:
|
||||||
// RgnHandle m_macUpdateRgn ;
|
|
||||||
// bool m_macEraseOnRedraw ;
|
|
||||||
wxBrush m_macBackgroundBrush ;
|
wxBrush m_macBackgroundBrush ;
|
||||||
wxRegion m_macVisibleRegion ;
|
wxRegion m_macVisibleRegion ;
|
||||||
int m_x ;
|
int m_x ;
|
||||||
@@ -272,18 +269,7 @@ protected:
|
|||||||
void MacCreateScrollBars( long style ) ;
|
void MacCreateScrollBars( long style ) ;
|
||||||
void MacRepositionScrollBars() ;
|
void MacRepositionScrollBars() ;
|
||||||
|
|
||||||
// additional (MSW specific) flags
|
bool m_backgroundTransparent ;
|
||||||
bool m_useCtl3D:1; // Using CTL3D for this control
|
|
||||||
bool m_backgroundTransparent:1;
|
|
||||||
bool m_mouseInWindow:1;
|
|
||||||
bool m_doubleClickAllowed:1;
|
|
||||||
bool m_winCaptured:1;
|
|
||||||
|
|
||||||
// the size of one page for scrolling
|
|
||||||
int m_xThumbSize;
|
|
||||||
int m_yThumbSize;
|
|
||||||
|
|
||||||
// WXHMENU m_hMenu; // Menu, if any
|
|
||||||
|
|
||||||
// implement the base class pure virtuals
|
// implement the base class pure virtuals
|
||||||
virtual void DoClientToScreen( int *x, int *y ) const;
|
virtual void DoClientToScreen( int *x, int *y ) const;
|
||||||
|
@@ -104,17 +104,6 @@ void wxWindowMac::Init()
|
|||||||
// generic
|
// generic
|
||||||
InitBase();
|
InitBase();
|
||||||
|
|
||||||
// MSW specific
|
|
||||||
m_doubleClickAllowed = 0;
|
|
||||||
m_winCaptured = FALSE;
|
|
||||||
|
|
||||||
m_isBeingDeleted = FALSE;
|
|
||||||
|
|
||||||
m_useCtl3D = FALSE;
|
|
||||||
m_mouseInWindow = FALSE;
|
|
||||||
|
|
||||||
m_xThumbSize = 0;
|
|
||||||
m_yThumbSize = 0;
|
|
||||||
m_backgroundTransparent = FALSE;
|
m_backgroundTransparent = FALSE;
|
||||||
|
|
||||||
// as all windows are created with WS_VISIBLE style...
|
// as all windows are created with WS_VISIBLE style...
|
||||||
@@ -150,8 +139,6 @@ wxWindowMac::~wxWindowMac()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_isBeingDeleted = TRUE;
|
|
||||||
|
|
||||||
#ifndef __WXUNIVERSAL__
|
#ifndef __WXUNIVERSAL__
|
||||||
// VS: make sure there's no wxFrame with last focus set to us:
|
// VS: make sure there's no wxFrame with last focus set to us:
|
||||||
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
||||||
@@ -800,25 +787,9 @@ bool wxWindowMac::Show(bool show)
|
|||||||
if ( !wxWindowBase::Show(show) )
|
if ( !wxWindowBase::Show(show) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/*
|
|
||||||
WindowRef window = (WindowRef) MacGetRootWindow() ;
|
|
||||||
wxWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
|
||||||
if ( win == NULL && win->m_isBeingDeleted )
|
|
||||||
return FALSE ;
|
|
||||||
*/
|
|
||||||
MacSuperShown( show ) ;
|
MacSuperShown( show ) ;
|
||||||
Refresh() ;
|
Refresh() ;
|
||||||
/*
|
|
||||||
if ( !show )
|
|
||||||
{
|
|
||||||
if ( win && !win->m_isBeingDeleted )
|
|
||||||
Refresh() ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Refresh() ;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1397,21 +1368,6 @@ void wxWindowMac::SetupColours()
|
|||||||
|
|
||||||
void wxWindowMac::OnIdle(wxIdleEvent& event)
|
void wxWindowMac::OnIdle(wxIdleEvent& event)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
// Check if we need to send a LEAVE event
|
|
||||||
if (m_mouseInWindow)
|
|
||||||
{
|
|
||||||
POINT pt;
|
|
||||||
::GetCursorPos(&pt);
|
|
||||||
if (::WindowFromPoint(pt) != (HWND) GetHWND())
|
|
||||||
{
|
|
||||||
// Generate a LEAVE event
|
|
||||||
m_mouseInWindow = FALSE;
|
|
||||||
MSWOnMouseLeave(pt.x, pt.y, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// This calls the UI-update mechanism (querying windows for
|
// This calls the UI-update mechanism (querying windows for
|
||||||
// menu/toolbar/control state information)
|
// menu/toolbar/control state information)
|
||||||
UpdateWindowUI();
|
UpdateWindowUI();
|
||||||
|
@@ -104,17 +104,6 @@ void wxWindowMac::Init()
|
|||||||
// generic
|
// generic
|
||||||
InitBase();
|
InitBase();
|
||||||
|
|
||||||
// MSW specific
|
|
||||||
m_doubleClickAllowed = 0;
|
|
||||||
m_winCaptured = FALSE;
|
|
||||||
|
|
||||||
m_isBeingDeleted = FALSE;
|
|
||||||
|
|
||||||
m_useCtl3D = FALSE;
|
|
||||||
m_mouseInWindow = FALSE;
|
|
||||||
|
|
||||||
m_xThumbSize = 0;
|
|
||||||
m_yThumbSize = 0;
|
|
||||||
m_backgroundTransparent = FALSE;
|
m_backgroundTransparent = FALSE;
|
||||||
|
|
||||||
// as all windows are created with WS_VISIBLE style...
|
// as all windows are created with WS_VISIBLE style...
|
||||||
@@ -150,8 +139,6 @@ wxWindowMac::~wxWindowMac()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_isBeingDeleted = TRUE;
|
|
||||||
|
|
||||||
#ifndef __WXUNIVERSAL__
|
#ifndef __WXUNIVERSAL__
|
||||||
// VS: make sure there's no wxFrame with last focus set to us:
|
// VS: make sure there's no wxFrame with last focus set to us:
|
||||||
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
||||||
@@ -800,25 +787,9 @@ bool wxWindowMac::Show(bool show)
|
|||||||
if ( !wxWindowBase::Show(show) )
|
if ( !wxWindowBase::Show(show) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/*
|
|
||||||
WindowRef window = (WindowRef) MacGetRootWindow() ;
|
|
||||||
wxWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
|
||||||
if ( win == NULL && win->m_isBeingDeleted )
|
|
||||||
return FALSE ;
|
|
||||||
*/
|
|
||||||
MacSuperShown( show ) ;
|
MacSuperShown( show ) ;
|
||||||
Refresh() ;
|
Refresh() ;
|
||||||
/*
|
|
||||||
if ( !show )
|
|
||||||
{
|
|
||||||
if ( win && !win->m_isBeingDeleted )
|
|
||||||
Refresh() ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Refresh() ;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1397,21 +1368,6 @@ void wxWindowMac::SetupColours()
|
|||||||
|
|
||||||
void wxWindowMac::OnIdle(wxIdleEvent& event)
|
void wxWindowMac::OnIdle(wxIdleEvent& event)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
// Check if we need to send a LEAVE event
|
|
||||||
if (m_mouseInWindow)
|
|
||||||
{
|
|
||||||
POINT pt;
|
|
||||||
::GetCursorPos(&pt);
|
|
||||||
if (::WindowFromPoint(pt) != (HWND) GetHWND())
|
|
||||||
{
|
|
||||||
// Generate a LEAVE event
|
|
||||||
m_mouseInWindow = FALSE;
|
|
||||||
MSWOnMouseLeave(pt.x, pt.y, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// This calls the UI-update mechanism (querying windows for
|
// This calls the UI-update mechanism (querying windows for
|
||||||
// menu/toolbar/control state information)
|
// menu/toolbar/control state information)
|
||||||
UpdateWindowUI();
|
UpdateWindowUI();
|
||||||
|
Reference in New Issue
Block a user