Dev/C, C++

    문자열 분할시, 특정 번째 문자열 얻기

    제목이 어렵네요.. ㅡㅡ; 소스 보시면 어려운것 없으니 금방 이해 하실겁니다. 좋은 시간 되세요..^^ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //--------------------------------------------------------------------------// //Fuction : Splite //Parameter : LPTSTR lpszDest, LPCTSTR lpcszSorc, TCHAR cSep, int nIndex //Return : LPCTSTR //Note : lpcszSorc를 cSep로 나누어서 nIndex번째 문자열을 lpszDest에 넣는다. //---------------------..

    CListCtrl에서 깜박임이 덜한 SetItemText

    //--------------------------------------------------------------------------// //Fuction : UpdateListItem //Parameter : CListCtrl* pList, int nIndex, int nSubitem, LPCTSTR lpszText //Return : BOOL //Note : pList의 nIndex, nSubitem의 텍스트를 lpszText로 바꾼다. // 같은 값이 벌써 들어가 있으면 FALSE, 새로운 값으로 대체 하면 TRUE //--------------------------------------------------------------------------// BOOL UpdateListItem(CL..

    CComboBox에서 ItemData와 ItemText찾기

    //--------------------------------------------------------------------------// //Fuction : FindComboString //Parameter : CComboBox* pCombo, DWORD dwSearch, CString *pstrDest //Return : int //Note : pCombo에서 Callback Item중 dwSearch를 찾아 // Index를 리턴하고, 해당 Index의 List Text를 pstrDest로 넘긴다. //--------------------------------------------------------------------------// int FindComboString(CComboBox* p..

    전체경로를 받아 파일이름을 제외한 경로만 구하기

    //-------------------------------------------------------------------------------------// // Function : OnlyDirecory // Parameter : CString strMoney // Return : LPTSTR strFull // Note : 인자로 받은 전체파일이름의 파일이 있는 경로를 리턴한다. //-------------------------------------------------------------------------------------// LPTSTR OnlyDirecory(LPTSTR strFull) { TCHAR* pPos = strFull + strlen( strFull ); while ( s..

    CTreeCtrl에서 ItemData 찾기 (자식노드 포함)

    //-------------------------------------------------------------------------------------// // Function : FindTreeData // Parameter : HTREEITEM hItem, DWORD dwData // Return : HTREEITEM // Note : hItem이하 모든 모든 노드에서 dwData를 찾는다. //-------------------------------------------------------------------------------------// HTREEITEM FindTreeData(CTreeCtrl* pTree, HTREEITEM hItem, DWORD dwData) { HTREEITE..

    MFC에서 .NET스타일의 메뉴를 사용해 보자

    NewMenu The NewMenu is published on CodeProject. There you will find the discussion board. This is a prerelease of NewMenu 1.13 (will be published shortly) Download executable Samples - 731 Kb Download demo projects for visual studio 6.0/7.0 - 282 Kb Download source NewMenu - 52 Kb Released NewMenu 1.11 (Published on codeproject) Download executable Samples - 671 Kb Download demo projects for vi..