MapVirtualKey

此頁沒有內(nèi)容條目
內(nèi)容

MapVirtualKey

VB聲明

Declare Function MapVirtualKey Lib "user32" Alias "MapVirtualKeyA" (ByVal wCode As Long, ByVal wMapType As Long) As Long

說明

根據(jù)指定的映射類型,執(zhí)行不同的掃描碼和字符轉(zhuǎn)換

返回值

Long,取決于wMapType參數(shù)

參數(shù)表

參數(shù)

類型及說明

wCode

Long,欲轉(zhuǎn)換的源字符或掃描碼

wMapType

Long,控制映射類型,如下所示

0—— wCode是個虛擬鍵碼。函數(shù)返回相應(yīng)的掃描碼

1—— wCode是個掃描碼。函數(shù)返回相應(yīng)的虛擬鍵碼

2—— wCode是個虛擬鍵碼。函數(shù)返回相應(yīng)的ASCII值(未加Shift組合鍵)

Top