- 博客(30)
- 资源 (53)
- 收藏
- 关注
原创 宽窄字符之间的转换
1、宽字节转窄字节:// 宽字符转窄字符char *WideCharToAnsi(wchar_t *pWideChar){ if (pWideChar == NULL) { return NULL; } char *pszBuf = NULL; int needBytes = WideCharToMultiByte(CP_ACP, 0, pWideChar, -1, NUL
2014-10-08 17:10:26 2230
原创 删除列表控件(List Control)中的所有选中行(多选)
1、首先是获取选中行的序号:int nItem = -1;POSITION pos = pList->GetFirstSelectedItemPosition();if (pos != NULL){while (pos){nItem = pList->GetNextSelectedItem(pos); // nItem即是选中行的序号}}
2014-10-01 17:06:45 6980
原创 CString转char*
CString strPath;TCHAR *pTchPath;char pChPath[MAX_PATH] = {0};int nlength;
2014-10-01 14:41:17 742
原创 Edit Control(编辑框控件)将光标移动到行尾,实现即时显示新内容
实现代码:int nLenth = pEdit->GetWindowTextLength();pEdit->SetSel(nLenth, nLenth, FALSE);pEdit->SetFocus();
2014-10-01 13:34:21 4489
Cocos2d-x射击小游戏 优化版
2014-08-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人