CategoryNewDlg.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- #if !defined(AFX_CATEGORYNEWDLG_H__FC9BE489_B459_4E16_A216_B34DDF8C3249__INCLUDED_)
- #define AFX_CATEGORYNEWDLG_H__FC9BE489_B459_4E16_A216_B34DDF8C3249__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // CategoryNewDlg.h : header file
- //
- #include "ButtonEx.h"
- #include "ctrlext.h"
- class CCategoryBarWnd;
- /////////////////////////////////////////////////////////////////////////////
- // CCategoryNewDlg dialog
- class CCategoryNewDlg : public CDialog
- {
- // Construction
- public:
- CCategoryNewDlg(CImageList* pctlImage,
- CCategoryBarWnd* pCategoryBarWnd,
- bool bNewOrMoveto, HTREEITEM hItemSel, CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CCategoryNewDlg)
- enum { IDD = IDD_DIALOG_NEW_CATEGORY };
- CButtonEx m_btnBrowseDir;
- CButtonEx m_btnCancel;
- CButtonEx m_btnOK;
- CTreeCtrlEx m_treeCatetory;
- CString m_strCategoryDir;
- CString m_strCategoryName;
- //}}AFX_DATA
- CImageList* m_pctlImage;
- bool m_bNewOrMoveto;
- HTREEITEM m_ItemSel;
- CCategoryBarWnd* m_pCategoryBarWnd;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCategoryNewDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CCategoryNewDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeEditCategoryName();
- afx_msg void OnSelchangedTreeCategory(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnChangeEditCategoryDir();
- virtual void OnOK();
- afx_msg void OnButtonFolderSel();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CTreeCursor GetCorrespondingCursor(CTreeCursor& curItem);
- long GetTreeData(CTreeCursor& curItem);
- void CopyTree(CTreeCursor& curSrc, CTreeCursor& curTarget);
- bool m_bAutoFill;
- CImageList m_ctlImage;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CATEGORYNEWDLG_H__FC9BE489_B459_4E16_A216_B34DDF8C3249__INCLUDED_)