DriverCombo.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:2k
源码类别:
Ftp客户端
开发平台:
Visual C++
- #if !defined(AFX_DRIVERCOMBO_H__79F3C1C3_4306_40CE_A63B_7287910859CD__INCLUDED_)
- #define AFX_DRIVERCOMBO_H__79F3C1C3_4306_40CE_A63B_7287910859CD__INCLUDED_
- /*********************************************
- **该文件是属于WolfFTP工程中的。如果有什么问题
- **请联系
- ** tablejiang@21cn.com
- **或者访问
- ** http://wolfftp.51.net
- **以得到最新的支持。
- *********************************************/
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DriverCombo.h : header file
- //
- /***********************************************************
- ** @Description:
- ** Use this ctrl you can display the system drivers and path .
- ** with the system default icon .
- **
- ** @Note:
- ** use SetDisplayStr( ) function display the path ,
- ** use GetNowPath( ) get the current list path .
- **
- **
- ** @Author: Table.JHM.太子
- ** e-mail: tablejiang@21cn.com
- ** Date: 2001 3 26
- *************************************************************/
- /////////////////////////////////////////////////////////////////////////////
- // CDriverCombo window
- class CDriverCombo : public CComboBoxEx
- {
- // Construction
- public:
- CDriverCombo();
- virtual ~CDriverCombo();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDriverCombo)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- BOOL SetDisplayStr( LPCTSTR szPath );
- CString GetNowPath( );
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDriverCombo)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- protected:
- int FindInsertPos( CString strPath );
- BOOL AddDriver( );
- BOOL AddDirectory( CString strPath );
- BOOL DeleteDirectory( );
- BOOL DeleteAllItem( );
- BOOL InsertPathItem( int iPos );
- CString GetDisplayPath(LPCTSTR strPath) ;
- BOOL GetSysImgList( );
- BOOL InitCombox( );
- BOOL AddItem( LPCTSTR pDriver , int level , int iPos );
- CImageList m_ImageList ; //system default image list .
- CString m_NowDriver ; //now display driver;
- CString m_NowDisplayPath ; //now display path .
- int m_nItem ;
- int m_nLevel ;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DRIVERCOMBO_H__79F3C1C3_4306_40CE_A63B_7287910859CD__INCLUDED_)