diff --git a/src/msw/fdrepdlg.cpp b/src/msw/fdrepdlg.cpp index 05df5ad616..0d34834244 100644 --- a/src/msw/fdrepdlg.cpp +++ b/src/msw/fdrepdlg.cpp @@ -345,7 +345,7 @@ wxFindReplaceDialog::~wxFindReplaceDialog() m_isShown = FALSE; // and from destroying our window - m_hWnd = NULL; + m_hWnd = (WXHWND)NULL; } bool wxFindReplaceDialog::Create(wxWindow *parent, diff --git a/src/msw/window.cpp b/src/msw/window.cpp index c9a9494c0e..73cb9e08d3 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -156,11 +156,8 @@ static void TranslateKbdEventToMouse(wxWindowMSW *win, // get the text metrics for the current font static TEXTMETRIC wxGetTextMetrics(const wxWindowMSW *win); -// check if the mouse is in the window or its child -static bool IsMouseInWindow(HWND hwnd); - // wrapper around BringWindowToTop() API -static inline wxBringWindowToTop(HWND hwnd) +static inline void wxBringWindowToTop(HWND hwnd) { #ifdef __WXMICROWIN__ // It seems that MicroWindows brings the _parent_ of the window to the top,