Click here to Skip to main content
15,896,154 members
Articles / Desktop Programming / MFC

Three Windows Demo

Rate me:
Please Sign up or sign in to vote.
2.29/5 (8 votes)
18 Apr 20042 min read 36K   1K   15  
Creates other processes (windows).
// ConsoleDemoDlg.h
//

#if !defined(AFX_CONSOLEDEMODLG_H__2D5C79A4_1DD2_4127_8FA3_8284F1A28690__INCLUDED_)
#define AFX_CONSOLEDEMODLG_H__2D5C79A4_1DD2_4127_8FA3_8284F1A28690__INCLUDED_

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

#include "ConsoleBox.h"

#define WM_USER_APPLY WM_APP + 1

/////////////////////////////////////////////////////////////////////////////
// CConsoleDemoDlg

class CConsoleDemoDlg : public CDialog
{
public:
	CConsoleDemoDlg(CWnd* pParent = NULL);
	void CreateConsoleWindow(LPTSTR lpszCmd);
	//{{AFX_DATA(CConsoleDemoDlg)
	enum { IDD = IDD_CONSOLEDEMO_DIALOG };
	//}}AFX_DATA

	//{{AFX_VIRTUAL(CConsoleDemoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	//}}AFX_VIRTUAL

protected:
	HICON m_hIcon;
	CConsoleBox m_cbConsole;
	//{{AFX_MSG(CConsoleDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	LRESULT OnCommandHandler(WPARAM wp, LPARAM lp);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}

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

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

Comments and Discussions