通过拼音首字母取汉字。
通过拼音首字母取汉字。
比如我在辅助信息中输入了汉字(你好)和它的拼音的首字母(NH),保存到配置文件后。
我只要光标在某一个控件中,只要输入(NH),对应的汉字(你好)就显示在这个控件中。
可我用
BOOL CDlgInformation::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
//CEdit *pEdit = (CEdit*)GetDlgItem(IDC_EDIT_LOGAPPNO);
if(pMsg->message == WM_KEYDOWN)
{
UINT UID = UINT(pMsg->wParam);
switch(UID)
{
case 'N' :
//////////////
case 'H'
/////////////
}
}
}
可我一按'N'消息就发出去了,有没有不用:PreTranslateMessage(MSG* pMsg) 去做,用其他方法去做。
大家帮帮忙