在C++ 可以通过lPraram指针获取LPARAM的值case WM_IME_COMPOSITION:
if (lParam & GCS_RESULTSTR) 在C#中尝试使用protected override void WndProc(ref Message m){
switch (m.Msg)
{
case WM_IME_COMPOSITION:
m.getLParam(Type cls)问题是cls 要求结构类型,怎么知道这个结构类型的定义?
也就是Win32 在抛出 WM_IME_COMPOSITION 事件的时候, 对LPARAM 的参数的定义格式。谢谢
if (lParam & GCS_RESULTSTR) 在C#中尝试使用protected override void WndProc(ref Message m){
switch (m.Msg)
{
case WM_IME_COMPOSITION:
m.getLParam(Type cls)问题是cls 要求结构类型,怎么知道这个结构类型的定义?
也就是Win32 在抛出 WM_IME_COMPOSITION 事件的时候, 对LPARAM 的参数的定义格式。谢谢
解决方案 »
- 关于OpenGL和Windows窗体的问题
- 传小文件能传成功,为什么传上M的文件就不行了呢,老提示连接被断开的错误,10053?
- 一个支持自动化的工程,能用两个odl文件吗?
- 一个和编程无关,和Foxmail有关的问题,很急
- 讨论一下,如何可以完成这样的界面?
- 送分.谁能给我显示图片得屏保(就像XP下得屏幕保护)源代码给我...
- 在vc中关于路径字符串的格式问题
- 我用gethostbyname这个函数为什么总是返回值为空?
- 请问各位大侠如下快速操作600M到1G的Dat文件? 为了这我发了好多贴子,您能尽快帮我吗?在些我真诚谢谢您!
- 请教关于在c++项目中gcvt的用法
- 急用IDownloadManager,可根据msdn 上的叙述,我搜遍了也没找到DownloadMgr.h, DownloadMgr.idl 这样的2个文件 ;
- 给变量赋值问题,简单,但我不会,郁闷,帮个忙吧!
The WM_IME_COMPOSITION message is sent to an application when the IME changes composition status as a result of a key stroke. An application should process this message if it displays composition characters itself. Otherwise, it should send the message to the IME window.chDBCS = (WORD) wParam;
fFlags = (BOOL) lParam;
Parameters
chDBCS
DBCS character representing the latest change to the composition string.
fFlags
Change flag, indicating how the composition string or character changed. This parameter can be one or more of the following values: GCS_COMPSTR GCS_SETCURSORPOS
GCS_COMPATTR GCS_RESULTSTR
GCS_COMPCLAUSE GCS_RESULTCLAUSE
GCS_COMPREADSTR GCS_RESULTREADSTR
GCS_COMPREADATTR GCS_RESULTREADCLAUSE
GCS_COMPREADCLAUSE GCR_ERRORSTR
GCS_TYPINGINFO GCR_INFOSTR
Return Values
No return value.Res
For more information about these values, see the "IME Composition String Values" table in Input Method Editor Constants.The fFlags parameter can also be a combination of the following values:Value Meaning
CS_INSERTCHAR Specifies that the given composition character should be inserted at the current insertion point. An application should display the composition character if it processes this message.
CS_NOMOVECARET Specifies that the application must not move the caret position as a result of processing the message. For example, if an IME specifies a combination of CS_INSERTCHAR and CS_NOMOVECARET, the application should insert the given character at the current caret position but should not move caret to the next position. A subsequent WM_IME_COMPOSITION message with GCS_RESULTSTR will replace this character.
If the application has created an IME window, it should pass this message to that window. The DefWindowProc function processes this message by passing it to the default IME window.The IME window processes this message by updating its appearance based on the change flag given. An application can call ImmGetCompositionString to retrieve the new composition status.If none of the GCS_ values are set, the message indicates that the current composition has been canceled and applications that draw the composition string should delete the string.QuickInfo
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 2.0 or later.
Header: Declared in imm.h.