项目:X保密项目
2012.03.18
LRESULT CVDesktop::OnChar(UINT uMsg,WPARAM wParam,LPARAM lParam,BOOL& bHandled)
{
// 根据两次输入的间隔时间确定输入的字符(串)
DWORD dwNow = GetTickCount();
if (dwNow - m_dwInputTimeLast < gcn_INTERVAL_INPUT)
{
m_strInput += (TCHAR)wParam;
}
else
{
m_strInput = (TCHAR)wParam;
}
m_dwInputTimeLast = dwNow;
}
2012.03.20
enum EPINYINMODE
{
PYMODE_AllSpell = 0, //全拼
PYMODE_1stLetter = 1, //每个汉字首拼音
PYMODE_AllSpell_CommaDiv = 2, //全拼,每个汉字拼音用逗号分隔
};CString GetPinyin(LPCWSTR szChinese, EPINYINMODE emMode = PYMODE_AllSpell);
CString FindLetter(int nCode);