Click here to Skip to main content
15,891,513 members
Articles / Desktop Programming / MFC

My Tree Control

Rate me:
Please Sign up or sign in to vote.
1.09/5 (11 votes)
10 Nov 20052 min read 66.7K   1.5K   21  
A tree control that is like a template and stores items.
1) there is a lot of good stuff here, scrapped from some dudes that surly got lot of extra time,
   which i don't have.
2) tree control use from XPTools only some drawing effects.
3) XPTools contains lots of usefull code to make the app look better. only ListBoxXP sucks.
   
   BallonTip and BallonHelp are nice ways to pop messages. BallonTip is bug-fixed and simple
   BallonHelp is complicated but has some fancy ways to pop
   MyRichEditCtrl is a rich edit control with some nice features. make a var of it and create it.
   don't use MFC Dialog to create it.

   MenuXP,ButtonXP,StatusBarXP - search for it in google. It is "componentSpot" code.

   Wizard2K is a cool wizard class derived from someone who liked win2k wizard.
   I added two pages that support callbacks fuction, fixed some of his bugs
   and maked his code much more usefull than making a page for each damned page.

   My pages are designed as prototypes, which can be initialized diffrently for any purpose.
   passing them stl lists make them have editboxes\Item list as many items as passed in
   constructor.
   
   callbacks gives the item pressed as one of the vars - let ur app deside what to do with
   the data.

   It's a bit complicated, read my code, i won't give my manager for it because i can't.
   Hints:

   the pages can be deleted on run time.
   don't change the resource of the app once a dlg is active. just don't do that.
   return it as the wizard close.
   
   use this class before u load the Dialog:

   it will make sure to return the app instance.

   GetXpToolsResouceHandle() is a func in XPTools dll.

class CXPToolsResourceChanger
{
	public: 
	CXPToolsResourceChanger(const HINSTANCE hReturnInstance)
		: m_hRCCResource(hReturnInstance)
	{
		HINSTANCE hXPToolsmodule = 
			(HINSTANCE)GetXPToolsResouceHandle();
		//LoadLibrary("XPToolsD.dll");

		ASSERT(hXPToolsmodule);

		AfxSetResourceHandle(hXPToolsmodule);
		
	}
	~CXPToolsResourceChanger()
	{
		//return prev instance on destruction
		AfxSetResourceHandle(m_hRCCResource);	
	}
	protected:
	//return it to value:

	const HINSTANCE m_hRCCResource;
};

   use this func to load a bitmap:

	HBITMAP hBitmap = ::LoadBitmap(m_hRCCResource,
		MAKEINTRESOURCE(IDB_RCC));


eat carrots, fuck a lot, and specially fuck the army!!!

fuck fuck fuck fuck the IDF
fuck it

can you imagine fucking 3 years (ur best fucking years! 19 -22 ) 
of service for complete assholes,
in the damned fucking army of israhell?!?!!@!!?!!@!@!?$#@?

i hate to guard, hate to clean, hate holding a rifle, hate to ask permissions,
hate the officers, hate shaving, hate wearing uniforms, hate short haircut,
hate when it's cold, hate when it's hot, hate flies, hate mosquitoes, hate bugs,
hate scorpions, hate cold iron, hate cold and hot wind, hate sand, hate the Radio,
hate working for 70 dolars for a month, hate eating syntetic garbage in the dinning room,
hate monkey-girls, hate stupid people, hate supporting the army's stupid system,
hate to fight all my life to get some peace in the end,
hate when they dishonor u altought u have given them youself for 3 years!!

i only like bunniez. and sheep.

bunniez rulez. they do, just believe me, i know.

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
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions