发布网友 发布时间:2022-08-15 08:14
共3个回答
热心网友 时间:2023-09-14 07:44
声明PostMessage函数的时候(其实很多很多API函数都是这样),有两种版本:A结尾的是ANSI版本,W结尾的是Unicode版本。一般用A结尾的。你声明的时候不是也写了:Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long么。可见PostMessage是我们为了方便起的名字,PostMessageA才是人家的原名。热心网友 时间:2023-09-14 07:45
Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long热心网友 时间:2023-09-14 07:45
可以简化成这样Public Declare Function PostMessageA Lib "user32" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long