Click here to Skip to main content
15,893,588 members
Articles / Desktop Programming / MFC

Control Center for Windows 2K and more extended

Rate me:
Please Sign up or sign in to vote.
4.55/5 (34 votes)
26 Jan 20046 min read 124.6K   1.5K   48  
Control Center for Windows 2K and more
#pragma once
#include "afxcmn.h"
#include "afxwin.h"


// CWindowList dialog
const int NAME_WND	= 0;
const int CLASS_WND	= 1;
const int HWND_WND	= 2;

class CWindowList : public CPropertyPage
{
	DECLARE_DYNAMIC(CWindowList)

public:
	CWindowList();
	virtual ~CWindowList();

	//BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam);
// Dialog Data
	enum { IDD = IDD_WINDOW };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
protected:
	CBackdoorClDlg* Papa;
	// the list of currently open windows
	CListCtrl m_WinList;
public:
	// the list of the windows
	CArray<HWND,HWND> WinList;
	
public:
	afx_msg void OnBnClickedRefresh();
	afx_msg void OnBnClickedBringtotop();
	afx_msg void OnBnClickedDestroywindow();
	afx_msg void OnBnClickedTilevert();
	afx_msg void OnBnClickedTilehoriz();
	afx_msg void OnBnClickedWndenable();
	afx_msg void OnNMRclickWindowlist(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnWindowmenuEnable();
	afx_msg void OnWindowmenuBringtotop();
	afx_msg void OnWindowmenuDestroy();
	virtual BOOL OnSetActive();
};

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
Engineer
India India
This is just a beginning. I’m yet to decide the distance I have to travel.
I’m a 2nd year B. Tech. Student and I’ve started Visual programming about a year ago. Lets hope I can continue that for the rest of 2 and a half more years.

Comments and Discussions