From 77e00fe9da297d8adda003cf20981b1bc1c2d65f Mon Sep 17 00:00:00 2001
From: Mattia Barbon <mbarbon@cpan.org>
Date: Sat, 11 Jan 2003 21:00:50 +0000
Subject: [PATCH 1/1]   Do not use deprecated functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/msw/checklst.cpp | 2 +-
 src/msw/spinctrl.cpp | 2 +-
 src/msw/textctrl.cpp | 2 +-
 src/msw/toplevel.cpp | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp
index f74f6dd59c..db05ff7812 100644
--- a/src/msw/checklst.cpp
+++ b/src/msw/checklst.cpp
@@ -395,7 +395,7 @@ void wxCheckListBox::OnKeyDown(wxKeyEvent& event)
         Clear
     } oper;
 
-    switch ( event.KeyCode() )
+    switch ( event.GetKeyCode() )
     {
         case WXK_SPACE:
             oper = Toggle;
diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp
index d5253b263f..8cbf378f11 100644
--- a/src/msw/spinctrl.cpp
+++ b/src/msw/spinctrl.cpp
@@ -162,7 +162,7 @@ bool wxSpinCtrl::ProcessTextCommand(WXWORD cmd, WXWORD WXUNUSED(id))
 
 void wxSpinCtrl::OnChar(wxKeyEvent& event)
 {
-    switch ( event.KeyCode() )
+    switch ( event.GetKeyCode() )
     {
         case WXK_RETURN:
             {
diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp
index ecc2831ac1..ea8f3eff76 100644
--- a/src/msw/textctrl.cpp
+++ b/src/msw/textctrl.cpp
@@ -1347,7 +1347,7 @@ bool wxTextCtrl::MSWShouldPreProcessMessage(WXMSG* pMsg)
 
 void wxTextCtrl::OnChar(wxKeyEvent& event)
 {
-    switch ( event.KeyCode() )
+    switch ( event.GetKeyCode() )
     {
         case WXK_RETURN:
             if ( !(m_windowStyle & wxTE_MULTILINE) )
diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp
index 0358aafc34..5873b25370 100644
--- a/src/msw/toplevel.cpp
+++ b/src/msw/toplevel.cpp
@@ -757,7 +757,7 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
         if ( m_winLastFocused )
         {
             // let it know that it doesn't have focus any more
-            m_winLastFocused->HandleKillFocus(NULL);
+            m_winLastFocused->HandleKillFocus((WXHWND)NULL);
         }
 
         // so we NULL it out if it's a child from some other frame
-- 
2.47.2