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:
@@ -395,7 +395,7 @@ void wxCheckListBox::OnKeyDown(wxKeyEvent& event)
|
||||
Clear
|
||||
} oper;
|
||||
|
||||
switch ( event.KeyCode() )
|
||||
switch ( event.GetKeyCode() )
|
||||
{
|
||||
case WXK_SPACE:
|
||||
oper = Toggle;
|
||||
|
@@ -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:
|
||||
{
|
||||
|
@@ -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) )
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user