Do not use deprecated functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-01-11 21:00:50 +00:00
parent 0fccfc51e6
commit 77e00fe9da
4 changed files with 4 additions and 4 deletions

View File

@@ -395,7 +395,7 @@ void wxCheckListBox::OnKeyDown(wxKeyEvent& event)
Clear Clear
} oper; } oper;
switch ( event.KeyCode() ) switch ( event.GetKeyCode() )
{ {
case WXK_SPACE: case WXK_SPACE:
oper = Toggle; oper = Toggle;

View File

@@ -162,7 +162,7 @@ bool wxSpinCtrl::ProcessTextCommand(WXWORD cmd, WXWORD WXUNUSED(id))
void wxSpinCtrl::OnChar(wxKeyEvent& event) void wxSpinCtrl::OnChar(wxKeyEvent& event)
{ {
switch ( event.KeyCode() ) switch ( event.GetKeyCode() )
{ {
case WXK_RETURN: case WXK_RETURN:
{ {

View File

@@ -1347,7 +1347,7 @@ bool wxTextCtrl::MSWShouldPreProcessMessage(WXMSG* pMsg)
void wxTextCtrl::OnChar(wxKeyEvent& event) void wxTextCtrl::OnChar(wxKeyEvent& event)
{ {
switch ( event.KeyCode() ) switch ( event.GetKeyCode() )
{ {
case WXK_RETURN: case WXK_RETURN:
if ( !(m_windowStyle & wxTE_MULTILINE) ) if ( !(m_windowStyle & wxTE_MULTILINE) )

View File

@@ -757,7 +757,7 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
if ( m_winLastFocused ) if ( m_winLastFocused )
{ {
// let it know that it doesn't have focus any more // 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 // so we NULL it out if it's a child from some other frame