Click here to Skip to main content
15,878,959 members
Articles / Desktop Programming / MFC

Exile 1.8 - The Password Manager

Rate me:
Please Sign up or sign in to vote.
4.57/5 (51 votes)
6 Mar 20058 min read 254.6K   7.4K   111  
Yet another password manager.
#if !defined(AFX_TREECTRLEX_H__18B0C8BB_C611_42D2_9B08_0E89C2E56D31__INCLUDED_)
#define AFX_TREECTRLEX_H__18B0C8BB_C611_42D2_9B08_0E89C2E56D31__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TreeCtrlEx.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTreeCtrlEx window

// Message to notify parent
const UINT TCEX_ITEMDRAGGED = WM_USER + 100;

class CTreeCtrlEx : public CTreeCtrl
{
// Construction
public:
	CTreeCtrlEx();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTreeCtrlEx)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTreeCtrlEx();

	// Generated message map functions
protected:
	//{{AFX_MSG(CTreeCtrlEx)
	afx_msg void OnBegindrag(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	void CopyChildren(HTREEITEM hDest, HTREEITEM hSrc);
	void CopyTree(HTREEITEM hDest, HTREEITEM hSrc);
	void MoveTree(HTREEITEM hDest, HTREEITEM hSrc);
	BOOL IsChildOf(const HTREEITEM hItem1, const HTREEITEM hItem2);
	HTREEITEM GetDropTarget(CPoint pt); // Returns 0 if we're either dragging to nowhere or to some _element_
	HTREEITEM m_hDragging; // Item being dragged
	BOOL m_bDragging; // Whether we're dragging or not
	CImageList *m_pimgDrag;

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TREECTRLEX_H__18B0C8BB_C611_42D2_9B08_0E89C2E56D31__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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
Web Developer
Russian Federation Russian Federation
I'll think about it later on...

Comments and Discussions