具体应用是这样的,我需要按"CTRL+T"健向服务器
端发送命令切换到控制模式,
如何实现呢?
端发送命令切换到控制模式,
如何实现呢?
解决方案 »
- 个人看法:没读过MSDN例子代码的Windows程序员都是在瞎混!
- 如何将CString转化到指定元素起始位置的char数组中?
- DrawText 多行显示怎样设置间距?
- 使用CArray模板出错
- VC2005的控件怎样用啊?
- dll在多线程中的使用问题?急啊!!!
- 初学者求助:如何在Combo box 中就选定的项将Access中匹配的内容显示出来,用ADO访问
- 我用VC2010编译孙新课件里的第一个课件出错error LNK2001: 无法解析的外部符号 _WinMainCRTStartup
- 谁知道02年南大研究生的计算机系录取分数线?
- 关于滚动条的问题!
- window串口通信问题
- 如果在vc中生成新文件夹问题
afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );ParametersnCharSpecifies the virtual-key code of the given key.nRepCntRepeat count (the number of times the keystroke is repeated as a result of the user holding down the key).nFlagsSpecifies the scan code, key-transition code, previous key state, and context code, as shown in the following list:Value Description
0–7 Scan code (OEM-dependent value).
8 Extended key, such as a function key or a key on the numeric keypad (1 if it is an extended key).
9–10 Not used.
11–12 Used internally by Windows.
13 Context code (1 if the ALT key is held down while the key is pressed; otherwise 0).
14 Previous key state (1 if the key is down before the call, 0 if the key is up).
15 Transition state (1 if the key is being released, 0 if the key is being pressed).
For a WM_KEYDOWN message, the key-transition bit (bit 15) is 0 and the context-code bit (bit 13) is 0.ResThe framework calls this member function when a nonsystem key is pressed. A nonsystem key is a keyboard key that is pressed when the ALT key is not pressed or a keyboard key that is pressed when CWnd has the input focus. Because of auto-repeat, more than one OnKeyDown call may occur before an OnKeyUp member function call is made. The bit that indicates the previous key state can be used to determine whether the OnKeyDown call is the first down transition or a repeated down transition.For IBM Enhanced 101- and 102-key keyboards, enhanced keys are the right ALT and the right CTRL keys on the main section of the keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys in the clusters to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad. Some other keyboards may support the extended-key bit in nFlags.Note This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function.CWnd Overview | Class Members | Hierarchy ChartSee Also WM_CHAR, WM_KEYUP,WM_KEYDOWNCTRL ASCII是17
VK_LCONTROL (A2)
Left CONTROL keyVK_RCONTROL (A3)
Right CONTROL key
CTRL key