From 3795cdba1b3d38d6bb673a28503d7b15d97f3a51 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 12 Feb 2004 19:45:40 +0000 Subject: [PATCH] Fixed to use wxNcPaintEvent types where needed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/univ/toplevel.h | 2 +- include/wx/univ/window.h | 2 +- src/univ/topluniv.cpp | 2 +- src/univ/winuniv.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/univ/toplevel.h b/include/wx/univ/toplevel.h index 9790eb6ca9..e446186e1f 100644 --- a/include/wx/univ/toplevel.h +++ b/include/wx/univ/toplevel.h @@ -158,7 +158,7 @@ protected: void Init(); void RefreshTitleBar(); - void OnNcPaint(wxPaintEvent& event); + void OnNcPaint(wxNcPaintEvent& event); void OnSystemMenu(wxCommandEvent& event); // TRUE if wxTLW should render decorations (aka titlebar) itself diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index 01115c15f3..a01a6e29b4 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -206,7 +206,7 @@ protected: // event handlers void OnSize(wxSizeEvent& event); - void OnNcPaint(wxPaintEvent& event); + void OnNcPaint(wxNcPaintEvent& event); void OnPaint(wxPaintEvent& event); void OnErase(wxEraseEvent& event); diff --git a/src/univ/topluniv.cpp b/src/univ/topluniv.cpp index 0ac5717db0..dea87cf2f5 100644 --- a/src/univ/topluniv.cpp +++ b/src/univ/topluniv.cpp @@ -238,7 +238,7 @@ void wxTopLevelWindow::DoSetClientSize(int width, int height) wxTopLevelWindowNative::DoSetClientSize(width, height); } -void wxTopLevelWindow::OnNcPaint(wxPaintEvent& event) +void wxTopLevelWindow::OnNcPaint(wxNcPaintEvent& event) { if ( !ms_drawDecorations || !m_renderer ) event.Skip(); diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 4de62140fc..2a5b246c93 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -211,7 +211,7 @@ const wxBitmap& wxWindow::GetBackgroundBitmap(int *alignment, // ---------------------------------------------------------------------------- // the event handlers executed when the window must be repainted -void wxWindow::OnNcPaint(wxPaintEvent& WXUNUSED(event)) +void wxWindow::OnNcPaint(wxNcPaintEvent& WXUNUSED(event)) { if ( m_renderer ) { -- 2.45.2