您的位置:首页 > 其它

MFC开发常用的一些函数

2017-04-24 12:10 218 查看
一、半角和全角字符的转换
int LCMapString(
LCID Locale, // locale identifier
DWORD dwMapFlags, //
mapping transformation type
LPCTSTR lpSrcStr, // source string
int cchSrc, //
number of characters in source string
LPTSTR lpDestStr, // destination buffer
int cchDest
// size of destination buffer);
主要参数说明
1、MAKELANGID(LANG_NEUTRAL,SUBLANG_SYS_DEFAULT);
2、常用的转换参数是:
LCMAP_FULLWIDTHUses wide characters (where applicable).
LCMAP_HALFWIDTHUses narrow characters (where applicable).
LCMAP_UPPERCASE
Uses uppercase.
LCMAP_LOWERCASE
Uses lowercase.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  开发 source number