09 2020 档案

摘要:有个需求是要删除选中项。看看CListCtrl有个DeleteItem(),就用它了。得到所有选中项的index,挨个删。只有一个选中的时候没问题,有多个的时候就删错了,有时候还弹出那个永远点不发送的框。这个删除有个陷阱,那就是每删除一个,后面项的index就要减1.挨着删的时候,删了前面的,后面的 阅读全文
posted @ 2020-09-25 15:57 曦花 阅读(354) 评论(0) 推荐(0) 编辑
摘要:const char* pszEndTime =“2021-09-10 12:00:00 struct tm end = { 0 }; sscanf_s(pszEndTime,"%d-%d-%d %d:%d:%d", &end.tm_year, &end.tm_mon, &end.tm_mday , 阅读全文
posted @ 2020-09-16 15:45 曦花 阅读(210) 评论(0) 推荐(0) 编辑
摘要:BOOL IsDirectory(LPCTSTR pstrPath) { if (NULL == pstrPath) { return FALSE; } /*去除路径末尾的反斜杠*/ CString strPath = pstrPath; if (strPath.Right(1) == _T('\\ 阅读全文
posted @ 2020-09-05 22:08 曦花 阅读(180) 评论(0) 推荐(0) 编辑
摘要:string strHouseId = "abcd"; const char *pC1 = strHouseId.c_str(); strHouseId = "1234"; const char *pC2 = strHouseId.c_str(); 此时的pC1和pC2内容一样 string的c_s 阅读全文
posted @ 2020-09-05 20:27 曦花 阅读(164) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示