-// ----------------------------------------------------------------------------
-// colours/fonts
-// ----------------------------------------------------------------------------
-
-bool wxWindow::SetBackgroundColour(const wxColour& colour)
-{
- if ( !wxWindowNative::SetBackgroundColour(colour) )
- return FALSE;
-
- m_hasBgCol = TRUE;
-
- return TRUE;
-}
-
-bool wxWindow::SetForegroundColour(const wxColour& colour)
-{
- if ( !wxWindowNative::SetForegroundColour(colour) )
- return FALSE;
-
- m_hasFgCol = TRUE;
-
- return TRUE;
-}
-
-bool wxWindow::SetFont(const wxFont& font)
-{
- if ( !wxWindowNative::SetFont(font) )
- return FALSE;
-
- m_hasFont = TRUE;
-
- return TRUE;
-}
-
-// ----------------------------------------------------------------------------
-// mouse capture
-// ----------------------------------------------------------------------------
-
-struct WXDLLEXPORT wxWindowNext
-{
- wxWindow *win;
- wxWindowNext *next;
-} *wxWindow::ms_winCaptureNext = NULL;
-
-void wxWindow::CaptureMouse()
-{
- wxWindow *winOld = GetCapture();
- if ( winOld )
- {
- // save it on stack
- wxWindowNext *item = new wxWindowNext;
- item->win = winOld;
- item->next = ms_winCaptureNext;
- ms_winCaptureNext = item;
- }
- //else: no mouse capture to save
-
- wxWindowNative::CaptureMouse();
-}
-
-void wxWindow::ReleaseMouse()
-{
- wxWindowNative::ReleaseMouse();
-
- if ( ms_winCaptureNext )
- {
- ms_winCaptureNext->win->CaptureMouse();
-
- wxWindowNext *item = ms_winCaptureNext;
- ms_winCaptureNext = item->next;
- delete item;
- }
- //else: stack is empty, no previous capture
-}
-