哈哈解决了 在http://www.wince.com.tw 找到的答案
Declare Function PeekMessage Lib "coredll.dll" Alias "PeekMessageW" _
(ByVal MSG As String, ByVal hWnd As Long, ByVal wMsgFilterMin As Integer, _
ByVal wMsgFilterMax As Integer, ByVal wRemoveMsg As Integer) As Boolean
Declare Function TranslateMessage Lib "coredll.dll" (ByVal MSG As String) As Boolean
Declare Function DispatchMessage Lib "coredll.dll" Alias "DispatchMessageW" _
(ByVal MSG As String) As Boolean
Public Const PM_REMOVE = 1
Public Subdo
EventsCE()
Dim msg As String
msg = String(18, Chr(0))
' Get message from queue and dispatch it
If PeekMessage(msg, 0, 0, 0, PM_REMOVE) then
TranslateMessage (msg)
DispatchMessage (msg)
End If
End Sub