Click here to Skip to main content
12,355,505 members (71,738 online)
Click here to Skip to main content

Stats

50K views
727 downloads
21 bookmarked
Posted

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
public:
	CShowWindowTreeDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CShowWindowTreeDlg)
	enum { IDD = IDD_SHOWWINDOWTREE_DIALOG };
	CEdit	m_BuildFrom;
	CTreeCtrl	m_Tree;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShowWindowTreeDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	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
	//{{AFX_MSG(CShowWindowTreeDlg)
	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
	afx_msg void OnTreeMenu(UINT nID);
	DECLARE_MESSAGE_MAP()
public:
	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.

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

Share

About the Author

Rocky Moore
President
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:

HintsAndTips.com
TheAwakening.com
My Blog: www.ReflectedThought.com
www.SilverlightCity.com
www.TheSaintsInLight.com
www.TheSilverlightDirectory.com
www.TheWPFDirectory.com

You may also be interested in...

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