Click here to Skip to main content
12,892,320 members (47,104 online)
Click here to Skip to main content


21 bookmarked
Posted 19 Jan 2002

ShowWindowTree Utility

, 19 Jan 2002
Display the hierarchy of windows (hidden or not) on your system along with a few options to modifiy them
// ShowWindowTreeDlg.h : header file

// CShowWindowTreeDlg dialog

class CShowWindowTreeDlg : public CDialog
// Construction
	CShowWindowTreeDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	CEdit	m_BuildFrom;
	CTreeCtrl	m_Tree;

	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
	HICON m_hIcon;
	CImageList MyList;
	BOOL m_ValidHwnds;
	void ScanWindow(HWND Start,HTREEITEM CurrentNode);
	void SaveBranch(HTREEITEM h,CFile& f,CTreeCtrl& m_Tree);
	void LoadBranch(HTREEITEM h,CFile& f,CTreeCtrl& m_Tree);

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnScan();
	afx_msg void OnSaveit();
	afx_msg void OnLoad();
	afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnTreeMenu(UINT nID);
	afx_msg void OnSize(UINT nType, int cx, int cy);

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.


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


About the Author

Rocky Moore
United States United States
Computer geek since the beginning of time, well, at least since 1981. Started with the Commodore VIC-20 with 3.5K RAM. Past two decades spent with C/C++, MFC and now totally consumed with .NET and C#.

Business owner here in beautiful southern Oregon with mountains, clean air and pure water. Great outdoors to enjoy when I can get away from the computers.

Web sites of interest:
My Blog:

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 20 Jan 2002
Article Copyright 2002 by Rocky Moore
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid