Click here to Skip to main content
16,014,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using Unicode in Editbox, ListControl and CString ? Pin
Paul M Watt1-Jun-02 18:22
mentorPaul M Watt1-Jun-02 18:22 
QuestionGet char pos of RichEditControl ? Pin
dlhson1-Jun-02 3:58
dlhson1-Jun-02 3:58 
AnswerRe: Get char pos of RichEditControl ? Pin
Ed Gadziemski1-Jun-02 10:56
professionalEd Gadziemski1-Jun-02 10:56 
GeneralRetrieve "Data traffic" Pin
XAlien1-Jun-02 3:16
XAlien1-Jun-02 3:16 
GeneralRe: Retrieve "Data traffic" Pin
Paul M Watt1-Jun-02 8:33
mentorPaul M Watt1-Jun-02 8:33 
GeneralRe: Retrieve "Data traffic" Pin
XAlien1-Jun-02 23:05
XAlien1-Jun-02 23:05 
GeneralListBox controls Pin
1-Jun-02 3:19
suss1-Jun-02 3:19 
GeneralRe: ListBox controls Pin
XAlien1-Jun-02 3:21
XAlien1-Jun-02 3:21 
For add a string into ListBox try:
ListBox.InsertItem(0,"you string");

If you want scan a directory, find files and add this in the ListBox:

CFileFind finder;
BOOL bWorking;
CString fullpath;
strPath = strPath + "*.*";
bWorking = finder.FindFile(strPath);
while (bWorking)
{
bWorking = finder.FindNextFile();
if ( !finder.IsDirectory())
{
CTime FileTime;
CString strFileName,strFileTime;
strFileName = fullpath+finder.GetFileName();
finder.GetLastWriteTime(FileTime);
strFileTime = FileTime.Format("%Y/%m/%d %H.%M");
SHFILEINFO shinfo;
SHGetFileInfo( strFileName,
0,
&shinfo,
sizeof( shinfo ),
SHGFI_ICON |
SHGFI_SMALLICON );
int j = InsertItem(0,finder.GetFileName());
SetItemText (j,1,strFileTime); //2nd column
}
} //end while
GeneralRe: ListBox controls Pin
1-Jun-02 6:00
suss1-Jun-02 6:00 
GeneralRe: ListBox controls Pin
XAlien1-Jun-02 23:02
XAlien1-Jun-02 23:02 
GeneralDifferent results with debug and release version Pin
George Ma1-Jun-02 2:33
George Ma1-Jun-02 2:33 
GeneralRe: Different results with debug and release version Pin
Michael P Butler1-Jun-02 2:37
Michael P Butler1-Jun-02 2:37 
GeneralRe: Different results with debug and release version Pin
George Ma1-Jun-02 18:12
George Ma1-Jun-02 18:12 
GeneralRe: Different results with debug and release version Pin
1-Jun-02 18:39
suss1-Jun-02 18:39 
GeneralTCP/IP on TAPI Pin
Sameer Maggon1-Jun-02 2:25
Sameer Maggon1-Jun-02 2:25 
GeneralRe: TCP/IP on TAPI Pin
Michael P Butler1-Jun-02 2:36
Michael P Butler1-Jun-02 2:36 
GeneralRe: TCP/IP on TAPI Pin
Sameer Maggon1-Jun-02 3:12
Sameer Maggon1-Jun-02 3:12 
GeneralRe: TCP/IP on TAPI Pin
Joaquín M López Muñoz1-Jun-02 6:53
Joaquín M López Muñoz1-Jun-02 6:53 
GeneralHiding Black window in Console app Pin
SamirSood1-Jun-02 2:00
SamirSood1-Jun-02 2:00 
GeneralRe: Hiding Black window in Console app Pin
Joaquín M López Muñoz1-Jun-02 5:41
Joaquín M López Muñoz1-Jun-02 5:41 
GeneralRe: Hiding Black window in Console app Pin
SamirSood3-Jun-02 0:53
SamirSood3-Jun-02 0:53 
GeneralRe: Hiding Black window in Console app Pin
Joaquín M López Muñoz3-Jun-02 8:31
Joaquín M López Muñoz3-Jun-02 8:31 
GeneralOwn wizard... Pin
Orkun GEDiK1-Jun-02 1:57
Orkun GEDiK1-Jun-02 1:57 
GeneralRe: Own wizard... Pin
Michael P Butler1-Jun-02 2:43
Michael P Butler1-Jun-02 2:43 
GeneralRe: Own wizard... Pin
Orkun GEDiK1-Jun-02 12:26
Orkun GEDiK1-Jun-02 12:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.