VkKeyScanEx 是由使用 WM_KEYUP 和WM_KEYDOWN 訊息傳送字元的應用程式使用。 注意 winuser.h 標頭會將 VkKeyScanEx 定義為別名,根據 UNICODE 預處理器常數的定義,自動選取此函式的 ANSI 或 Unicode 版本。 混合使用編碼中性別名與非編碼中性的程序代碼,可能會導致編譯或運行時間錯誤不符。 如需詳細資訊,請參閱...
SHORT VkKeyScanA( [in] CHAR ch ); 参数[in] ch类型: TCHAR要转换为虚拟键代码的字符。返回值类型: SHORT如果函数成功,则返回值的低序字节包含虚拟键代码,高序字节包含 shift 状态,可以是以下标志位的组合。展开表 返回值说明 1 按下任一 SHIFT 键。 2 按下任一 Ctrl 键。 4 按下任一 Alt 键。
The winuser.h header defines VkKeyScanEx as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that re...
VkKeyScanEx,函数功能:该函数将一个字符翻译成相应的虚拟键码和对于当前键盘的上挡状态。该函数使用由给定的键盘布局句柄标识的物理键盘布局和输入语言来翻译字符。函数原型:SHORT VkKeyScanEx(TCHAR ch,HKL dwhkf);参数:ch:定义被翻译成虚拟键码的字符。Dwhkl:用于翻译字符的键盘布局句柄。该参数值可以是任意...
The winuser.h header defines VkKeyScanEx as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that re...
The winuser.h header defines VkKeyScanEx as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that re...
SHORT VkKeyScanA( [in] CHAR ch ); Parameter [in] ch Typ: TCHAR Das Zeichen, das in einen Virtuellen Schlüsselcode übersetzt werden soll. Rückgabewert Typ: SHORT Wenn die Funktion erfolgreich ist, enthält das Byte mit niedriger Ordnung des Rückgabewerts den Code des virtuellen Schlüsse...
[This function has been superseded by the VkKeyScanEx function. You can still use VkKeyScan, however, if you do not need to specify a keyboard layout.] Translates a character to the corresponding virtual-key code and shift state for the current keyboard.Syntax...
SHORTVkKeyScanW( [in] WCHAR ch ); Parameters [in] ch Type:TCHAR The character to be translated into a virtual-key code. Return value Type:SHORT If the function succeeds, the low-order byte of the return value contains the virtual-key code and the high-order byte contains the shift state...