Click here to Skip to main content
13,249,174 members (35,560 online)
Click here to Skip to main content


40 bookmarked
Posted 14 Feb 2006

Window Unhidder

, 14 Feb 2006
A utility to list and hide/unhide all application windows.
// WindowUnhidderDlg.h : header file

#if !defined(AFX_WINDOWUNHIDDERDLG_H__41E64F55_FA73_42C9_80A8_9B5D77858492__INCLUDED_)
#define AFX_WINDOWUNHIDDERDLG_H__41E64F55_FA73_42C9_80A8_9B5D77858492__INCLUDED_

#include "ListCtrlEx.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// CWindowUnhidderDlg dialog

class CWindowUnhidderDlg : public CDialog
// Construction
	void ClearData();
	CString GetProcessName(int ProcessID, bool fullpath =false);
	CWindowUnhidderDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	CButton	m_ParentHandler;
	CButton	m_FullPath;
	CEdit	m_Process;
	CEdit	m_PID;
	CButton	m_ExitButton;
	CButton	m_RefreshButton;
	CEdit	m_Padre;
	CButton	m_Visible;
	CButton	m_Enabled;
	CEdit	m_Title;
	CEdit	m_Class;
	CEdit	m_Handle;
	CListCtrlEx	m_List;
	CString	m_WindowsFound;

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

// Implementation
	int m_margin;
	HICON m_hIcon;
	HWND m_mWnd;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRefresh();
	afx_msg void OnVisible();
	afx_msg void OnEnabled();
	afx_msg void OnItemchangedList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	void SelectParam(HWND param);

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

#endif // !defined(AFX_WINDOWUNHIDDERDLG_H__41E64F55_FA73_42C9_80A8_9B5D77858492__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.


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

Software Developer (Senior)
Spain Spain
Javier Jimenez Shaw. Born in Madrid in 1975. Civil engineer, is working developing financial algorithms for exotic products.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171114.1 | Last Updated 14 Feb 2006
Article Copyright 2006 by JJimenezShaw
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid