Rename wxCharCode{MSWToWX,WXToMSW}() and move them to a separate header.
These functions were confusingly named as they work with MSW (virtual) key codes and not character codes, rename them to better indicate what they do. They also don't need to be in wx/msw/window.h included by all wx code when they are only really needed in a couple of files, so move them to a private header. No changes in behaviour. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "wx/vector.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/msw/private/keyboard.h"
|
||||
|
||||
#if defined(__WXWINCE__) && !defined(__HANDHELDPC__)
|
||||
#include <ole2.h>
|
||||
@@ -2340,7 +2341,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
{
|
||||
eventType = wxEVT_COMMAND_LIST_KEY_DOWN;
|
||||
|
||||
event.m_code = wxCharCodeMSWToWX(wVKey);
|
||||
event.m_code = wxMSWKeyboard::VKToWX(wVKey);
|
||||
}
|
||||
|
||||
event.m_itemIndex =
|
||||
|
Reference in New Issue
Block a user