]> git.saurik.com Git - wxWidgets.git/commitdiff
Do not use deprecated functions.
authorMattia Barbon <mbarbon@cpan.org>
Sat, 11 Jan 2003 21:00:50 +0000 (21:00 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 11 Jan 2003 21:00:50 +0000 (21:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/checklst.cpp
src/msw/spinctrl.cpp
src/msw/textctrl.cpp
src/msw/toplevel.cpp

index f74f6dd59c1bbc83f7cf2637049a6170fbaa1c96..db05ff7812308cc12b1a23f7a2eb87acd766d717 100644 (file)
@@ -395,7 +395,7 @@ void wxCheckListBox::OnKeyDown(wxKeyEvent& event)
         Clear
     } oper;
 
-    switch ( event.KeyCode() )
+    switch ( event.GetKeyCode() )
     {
         case WXK_SPACE:
             oper = Toggle;
index d5253b263fe05f153392c3903d3fa173f7643a2a..8cbf378f111db401346aede4c23b38d0de4cbf9e 100644 (file)
@@ -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:
             {
index ecc2831ac1ab1a18d25a2518b8c504ce10e5a8b3..ea8f3eff7630a6a0118336b3fef69d9c4457482d 100644 (file)
@@ -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) )
index 0358aafc346d8afa639a5f04d8e64572aa7ed985..5873b253703d814bf2265a9bc39f3b8fbc8d62b2 100644 (file)
@@ -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