CDirTreeDlgDlg.cpp
上传用户:httpyym
上传日期:2007-01-02
资源大小:38k
文件大小:6k
- // CDirTreeDlgDlg.cpp : Implementierungsdatei
- //
- #include "stdafx.h"
- #include "CDirTreeDlg.h"
- #include "CDirTreeDlgDlg.h"
- #include <direct.h>
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CAboutDlg-Dialogfeld f黵 Anwendungsbefehl "Info"
- class CAboutDlg : public CDialog
- {
- public:
- CAboutDlg();
- // Dialogfelddaten
- //{{AFX_DATA(CAboutDlg)
- enum { IDD = IDD_ABOUTBOX };
- //}}AFX_DATA
- // Vom Klassenassistenten generierte 躡erladungen virtueller Funktionen
- //{{AFX_VIRTUAL(CAboutDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterst黷zung
- //}}AFX_VIRTUAL
- // Implementierung
- protected:
- //{{AFX_MSG(CAboutDlg)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
- {
- //{{AFX_DATA_INIT(CAboutDlg)
- //}}AFX_DATA_INIT
- }
- void CAboutDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CAboutDlg)
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
- //{{AFX_MSG_MAP(CAboutDlg)
- // Keine Nachrichten-Handler
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCDirTreeDlgDlg Dialogfeld
- CCDirTreeDlgDlg::CCDirTreeDlgDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CCDirTreeDlgDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CCDirTreeDlgDlg)
- m_strSelection = _T("");
- m_strPathName = _T("");
- //}}AFX_DATA_INIT
- // Beachten Sie, dass LoadIcon unter Win32 keinen nachfolgenden DestroyIcon-Aufruf ben鰐igt
- m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
- }
- void CCDirTreeDlgDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CCDirTreeDlgDlg)
- DDX_Text(pDX, IDC_SELTEXT, m_strSelection);
- DDX_Text(pDX, IDC_PATHNAME, m_strPathName);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CCDirTreeDlgDlg, CDialog)
- //{{AFX_MSG_MAP(CCDirTreeDlgDlg)
- ON_WM_SYSCOMMAND()
- ON_WM_PAINT()
- ON_WM_QUERYDRAGICON()
- ON_BN_CLICKED(IDC_SELECT, OnSelect)
- ON_NOTIFY(TVN_SELCHANGED, IDC_DIRTREE, OnSelchangedDirtree)
- ON_BN_CLICKED(IDC_SELOK, OnSelok)
- ON_BN_CLICKED(IDC_FILENAMES, OnFilenames)
- ON_BN_CLICKED(IDC_FOLDERS, OnFolders)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCDirTreeDlgDlg Nachrichten-Handler
- BOOL CCDirTreeDlgDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // Hinzuf黦en des Men黚efehls "Info..." zum Systemmen