Click here to Skip to main content
15,896,557 members
Articles / Programming Languages / C

BasicAdmin - Personal Organizer

Rate me:
Please Sign up or sign in to vote.
4.94/5 (14 votes)
1 Aug 2009CPOL6 min read 51K   5.6K   60  
Finance, contacts, notes organizer
// LeftView.h: interfaz de la clase CLeftView
//
#pragma once

class CLeftView : public CTreeView
{
protected: // Crear s�lo a partir de serializaci�n
	bool enters;
	
    DECLARE_DYNCREATE(CLeftView)
	//DECLARE_DYNAMIC(CLeftView)
	CImageList m_SmallImageList;
	HTREEITEM CargarItem(HTREEITEM Padre, LPCTSTR Desc, int Imagen, int SelImagen, int ID);
	void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
	void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
	LRESULT OnHelpHitTest(WPARAM wParam, LPARAM lParam);
	void OnTimer(UINT nIDEvent);
	HTREEITEM itemdinput;
// Atributos
public:
	CLeftView();
	void RefrescarNodo(HTREEITEM itemselec);	
	int IdSelec;
	HTREEITEM itemselec;
	enum TNodesSelec
	{
		TNodPrinc = 1,

		TNodCashManager = 2,
		TNodContacts = 3,
		TNodNotesFiles = 4,
		TNodCalendar = 5,

		TNodCashDaily = 10,
		TNodCashAccounts = 11,
		TNodCashCurrencies = 12,
		 
		TNodContactsTree = 20,
		TNodContactsList = 21,
		
		TNodNotesFilesCat = 30,
		TNodNotes = 31,
		
		TNodCalendarCat = 40,
		TNodCalendarData = 41
	};
// Operaciones
public:
	void NodeSelect(UINT id);
// Reemplazos
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	int idant;
protected:
	CString GetNodeDescription(TNodesSelec sel);
	CString GetBarDescription(TNodesSelec sel);
	BOOL HayHistoria(HTREEITEM treenode);
	void ExpandirHistoria(HTREEITEM treenode);
	virtual void OnInitialUpdate(); // Se llama la primera vez despu�s de la construcci�n
// Implementaci�n
public:
	virtual ~CLeftView();
	int GetIDHelpFromSelID();
protected:
	void ChangeView(CRuntimeClass * pViewClass, int TypeCat = 0);
	
// Funciones de asignaci�n de mensajes generadas
protected:
	DECLARE_MESSAGE_MAP()

};


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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Argentina Argentina
System developer from Argentina.

Programmed in VB 5,6,.NET, C#, Java, PL-SQL, Transac-SQL, C, C++ and even some "calculator" language.

Love to build small, useful applications.
Usually building big and complicated apps based on solid, reliable components.

Hobbies: reading, photography, chess, paddle, running.

Comments and Discussions