第一个答对的有分
解决方案 »
- wsprintf怎么扫double值?
- 怎样用IXMLDOMDocument写xml头
- 【求助】MFC数据库编程,出现“无效的描述符索引”
- 无法打开***.sbr文件该怎么办?
- 紧急求助:一个小小的问题,在线等………………………………………………
- 那里可以下载The C++ Programming Languague
- 100分!哪位兄弟给出点主意,看看这个Debug Assertion Failed 是怎么回事,急死偶了
- 请教两个菜问题
- vfw如何通过摄像头实时获取视频图像,并将其显示出来,不用cappreview。
- IE怎么响应ACTIVEX发出的自定义的事件
- 如何用文件来做数据库
- 请问哪里有关于STL的书下载
SDK中PostMessage(hwnd, WM_CHAR……)什么的
乱猜的,未验证
SendMessage
UINT nInputs, // count of input events
LPINPUT pInputs, // array of input events
int cbSize // size of structure
);
Parameters
nInputs
[in] Specifies the number of structures in the pInputs array.
pInputs
[in] Pointer to an array of INPUT structures. Each structure represents an event to be inserted into the keyboard or mouse input stream.
cbSize
[in] Specifies the size, in bytes, of an INPUT structure. If cbSize is not the size of an INPUT structure, the function will fail.
Return Values
The function returns the number of events that it successfully inserted into the keyboard or mouse input stream. If the function returns zero, the input was already blocked by another thread.To get extended error information, call GetLastError. Res
The SendInput function inserts the events in the INPUT structures serially into the keyboard or mouse input stream. These events aren't interspersed with other keyboard or mouse input events inserted either by the user (with the keyboard or mouse) or by calls to keybd_event, mouse_event, or other calls to SendInput.This function does not reset the keyboard's current state. Any keys that are already pressed when the function is called might interfere with the events that this function generates. To avoid this problem, check the keyboard's state with the GetAsyncKeyState function and correct as necessary.
BYTE bVk, // virtual-key code
BYTE bScan, // hardware scan code
DWORD dwFlags, // flags specifying various function options
DWORD dwExtraInfo // additional data associated with keystroke
);
Parameters
bVk
Specifies a virtual-key code. The code must be a value in the range 1 to 254.
bScan
Specifies a hardware scan code for the key.
dwFlags
A set of flag bits that specify various aspects of function operation. An application can use any combination of the following predefined constant values to set the flags. Value Meaning
KEYEVENTF_EXTENDEDKEY If specified, the scan code was preceded by a prefix byte having the value 0xE0 (224).
KEYEVENTF_KEYUP If specified, the key is being released. If not specified, the key is being depressed.
dwExtraInfo
Specifies an additional 32-bit value associated with the key stroke.
Return Values
This function has no return value.