模拟wm_char消息,发送多字节 [英] Simulate the wm_char msg , send multi-byte

查看:251
本文介绍了模拟wm_char消息,发送多字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一些亚洲单词有多字节,我试图模拟wm_char消息发送这些单词,但是失败了,即使使用二进制字节。



有没有其他方法可以解决这个问题?



我尝试过:



是这样的:



some asian words have multi-bytes , I'm trying to simulate the wm_char message to send these words , but failed , even using the binary bytes.

Is there any other method to deal with this ?

What I have tried:

like this :

PostMessage(ctrl_info.ctrl_hwnd , WM_CHAR ,0xbac3,0)





这是将wm_char模拟发送到记事本的编辑控件的片段代码,我保存了记事本,找出消息0xbac3已被分隔为0xc300和0xba00



this is a frament code of sending wm_char simulation to notepad's Edit control, I saved the notepad ,find out the message 0xbac3 has been seperated as 0xc300 and 0xba00

推荐答案

也许看这里?



windows - WM_CHAR发送unicode字符 - 堆栈溢出 [ ^ ] [ ^ ]
Maybe look here?

windows - WM_CHAR send unicode character - Stack Overflow[^][^]


WM_CHAR应该处理Unicode,如WM_CHAR消息(Windows) [ ^ ]。但是,接收应用程序必须设计为期望Unicode字符。
WM_CHAR should handle Unicode as described at WM_CHAR message (Windows)[^]. However, the receiving application must be designed to expect a Unicode character.


这篇关于模拟wm_char消息,发送多字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆