Click here to Skip to main content
15,888,350 members
Articles / Desktop Programming / MFC
Article

System Drives Explorer

Rate me:
Please Sign up or sign in to vote.
2.84/5 (16 votes)
7 Aug 2002 94.9K   1.9K   26   13
System Drives Explorer

Sample Image - DriveExplorer.gif

What's New:



Introduction:

This project is look-alike of the Windows Explorer, The Icons and File Types unfortunately have been hardcoded in the project, unlike the ones available on the Windows Explorer, The Icons are a Part of the Project and not picked up from the Windows Operating System. This Uses a TreeView in ther left pane and ListView in the right pane To Display All the Drives (including CD Drive) on the Computer System

Fearture:

This project has the following features

  • Displays All Drives on the Computer System
  • Allows Sorting of Columns (by clicking on the Column Header)
  • At startup moves to the folder that was last selected at time of closedown of the previous session (*)
  • Starts the appropriate program when you double-click on a file (eg. Notepad for txt file) (*)

    * Incorporated based on user suggestions on some other site

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
India India
Nothing to boast about

Comments and Discussions

 
GeneralMissing licence Pin
Frederic Souchu25-Oct-10 22:56
Frederic Souchu25-Oct-10 22:56 
QuestionHow the right view refreshed Pin
keroun17-Jul-06 15:13
keroun17-Jul-06 15:13 
AnswerRe: How the right view refreshed Pin
Barretto VN20-Jul-06 23:39
Barretto VN20-Jul-06 23:39 
GeneralRe: How the right view refreshed Pin
keroun23-Jul-06 15:34
keroun23-Jul-06 15:34 
QuestionI Need Help Pin
heldermarques11-Mar-06 13:19
heldermarques11-Mar-06 13:19 
AnswerRe: I Need Help Pin
Barretto VN12-Mar-06 2:59
Barretto VN12-Mar-06 2:59 
try the following


// create splitter window
if (!m_wndSplitterMain.CreateStatic(this, 1, 2))
return FALSE;

if (!m_wndSplitterMain.CreateView(0, 0, RUNTIME_CLASS(CLeftView), CSize(100, 100), pContext))
{
m_wndSplitterMain.DestroyWindow();
return FALSE;
}

if (!m_wndSplitterChild.CreateStatic(
&m_wndSplitterMain, // our parent window is the first splitter
2, 1, // the new splitter is 2 rows, 1 column
WS_CHILD | WS_VISIBLE | WS_BORDER, // style, WS_BORDER is needed
m_wndSplitterMain.IdFromRowCol(0, 1)
// new splitter is in the first row, 2nd column of first splitter
))
{
m_wndSplitterMain.DestroyWindow();
return FALSE;
}

if (!m_wndSplitterChild.CreateView(0, 0,
RUNTIME_CLASS(CDataListView), CSize(100, 100), pContext))
{
m_wndSplitterMain.DestroyWindow();
m_wndSplitterChild.DestroyWindow();
return FALSE;
}

if (!m_wndSplitterChild.CreateView(1, 0,
RUNTIME_CLASS(CAllDataView), CSize(100, 100), pContext))
{
m_wndSplitterMain.DestroyWindow();
m_wndSplitterChild.DestroyWindow();
return FALSE;
}

Generalneed help Pin
Anonymous3-Mar-05 7:45
Anonymous3-Mar-05 7:45 
GeneralRe: need help Pin
Barretto VN5-Mar-05 1:46
Barretto VN5-Mar-05 1:46 
Questioncan anyone provide me a solution Pin
Member 155725528-Feb-05 22:14
Member 155725528-Feb-05 22:14 
AnswerRe: can anyone provide me a solution Pin
Barretto VN5-Mar-05 1:49
Barretto VN5-Mar-05 1:49 
GeneralCombining With a multiselect tree Pin
Gargoyle_45127-Jan-03 2:32
Gargoyle_45127-Jan-03 2:32 
GeneralSelected item in tree view Highlight vanishes Pin
Gargoyle- at work12-Aug-02 22:41
Gargoyle- at work12-Aug-02 22:41 
GeneralRe: Selected item in tree view Highlight vanishes Pin
Jerry Jeremiah19-Apr-06 21:59
Jerry Jeremiah19-Apr-06 21:59 

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.