mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 19:37:00 +08:00
use _MGCHARSET_UNICODE marco for ToUnicode and ToAscii functions
This commit is contained in:
@@ -2667,12 +2667,19 @@ MG_EXPORT int GUIAPI PostQuitMessage (HWND hWnd);
|
||||
*/
|
||||
MG_EXPORT BOOL GUIAPI SetKeyboardLayout (const char* kbd_layout);
|
||||
|
||||
#ifdef _MGCHARSET_UNICODE
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
MG_EXPORT int GUIAPI ToUnicode (UINT keycode, const BYTE* kbd_state,
|
||||
wchar_t* wcs, int wcs_len, const char* kbd_layout);
|
||||
|
||||
MG_EXPORT int GUIAPI ToAscii (UINT keycode, const BYTE* kbd_state,
|
||||
WORD* ch, const char* kbd_layout);
|
||||
|
||||
#endif /* _MGCHARSET_UNICODE */
|
||||
|
||||
/**
|
||||
* \fn BOOL TranslateMessage (PMSG pMsg)
|
||||
* \brief Translates key down and key up messages to MSG_CHAR
|
||||
|
||||
Reference in New Issue
Block a user