'/*Это для C++
'static CWnd* PASCAL GetForegroundWindow( );
'*/
'/*И для VB
Declare Function GetForegroundWindow Lib "user32" () As Long
'*/
Const WM_PASTE = &H302
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Call SendMessage(TEXTBOX_HANDLE, WM_PASTE, 0&, 0&)
Private Declare Function FindWindow Lib "Coredll.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "Coredll.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Long) As Long
Вернуться в Visual Basic для мобильных устройств
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6