Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is wrong with this? [modified] Pin
ovidiucucu26-Jun-06 5:06
ovidiucucu26-Jun-06 5:06 
GeneralRe: What is wrong with this? Pin
James R. Twine26-Jun-06 4:42
James R. Twine26-Jun-06 4:42 
AnswerRe: What is wrong with this? Pin
Chris Meech26-Jun-06 4:25
Chris Meech26-Jun-06 4:25 
Questionhow we caan add files to listbox Pin
happy_ram26-Jun-06 1:18
happy_ram26-Jun-06 1:18 
AnswerRe: how we caan add files to listbox Pin
Hamid_RT26-Jun-06 1:25
Hamid_RT26-Jun-06 1:25 
GeneralRe: how we caan add files to listbox Pin
happy_ram26-Jun-06 1:34
happy_ram26-Jun-06 1:34 
AnswerRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 1:31
Sarath C26-Jun-06 1:31 
AnswerRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 1:33
Sarath C26-Jun-06 1:33 
Another way to do the same thing
// The pointer to my list box.
extern CListBox* pmyListBox;

// Add all the files and directories in the windows directory.
TCHAR lpszWinPath[MAX_PATH], lpszOldPath[MAX_PATH];
::GetWindowsDirectory(lpszWinPath, MAX_PATH);

::GetCurrentDirectory(MAX_PATH, lpszOldPath);
::SetCurrentDirectory(lpszWinPath);

pmyListBox->ResetContent();
pmyListBox->Dir(DDL_READWRITE|DDL_DIRECTORY, _T("*.*"));

::SetCurrentDirectory(lpszOldPath);


SaRath.

"Do Next Thing..."
My Blog | Understanding State Pattern in C++

GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 1:34
Sarath C26-Jun-06 1:34 
GeneralRe: how we caan add files to listbox Pin
happy_ram26-Jun-06 1:46
happy_ram26-Jun-06 1:46 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 2:07
Sarath C26-Jun-06 2:07 
GeneralRe: how we caan add files to listbox Pin
happy_ram26-Jun-06 2:11
happy_ram26-Jun-06 2:11 
GeneralRe: how we caan add files to listbox Pin
Naveen26-Jun-06 2:23
Naveen26-Jun-06 2:23 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 2:27
Sarath C26-Jun-06 2:27 
GeneralRe: how we caan add files to listbox Pin
vasusree26-Jun-06 3:03
vasusree26-Jun-06 3:03 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 3:49
Sarath C26-Jun-06 3:49 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 3:50
Sarath C26-Jun-06 3:50 
Questionfunction WM_ERASEBKGND Pin
yogendra kaushik26-Jun-06 1:16
yogendra kaushik26-Jun-06 1:16 
AnswerRe: function WM_ERASEBKGND Pin
Sarath C26-Jun-06 1:23
Sarath C26-Jun-06 1:23 
GeneralRe: function WM_ERASEBKGND Pin
yogendra kaushik26-Jun-06 1:31
yogendra kaushik26-Jun-06 1:31 
GeneralRe: function WM_ERASEBKGND Pin
Sarath C26-Jun-06 1:35
Sarath C26-Jun-06 1:35 
GeneralRe: function WM_ERASEBKGND Pin
yogendra kaushik26-Jun-06 1:38
yogendra kaushik26-Jun-06 1:38 
GeneralRe: function WM_ERASEBKGND Pin
Sarath C26-Jun-06 2:45
Sarath C26-Jun-06 2:45 
GeneralRe: function WM_ERASEBKGND Pin
Hamid_RT26-Jun-06 1:43
Hamid_RT26-Jun-06 1:43 
AnswerRe: function WM_ERASEBKGND Pin
ovidiucucu26-Jun-06 2:11
ovidiucucu26-Jun-06 2:11 

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.