www.pudn.com > GGBT.rar > CategoryNewDlg.h
#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_)