Click here to Skip to main content
15,880,967 members
Articles / Programming Languages / C

System Dialogs

,
Rate me:
Please Sign up or sign in to vote.
4.89/5 (68 votes)
21 Aug 2004CPOL1 min read 160K   3.4K   98  
This article shows you a very simple way to show system dialogs like Internet Options, Add/Remove Programs, and etc.
// SystemDialogs_DemoDlg.h : header file
//

#if !defined(AFX_SYSTEMDIALOGS_DEMODLG_H__1D35A876_B1EC_4DB0_96AD_7D8DABD8F241__INCLUDED_)
#define AFX_SYSTEMDIALOGS_DEMODLG_H__1D35A876_B1EC_4DB0_96AD_7D8DABD8F241__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSystemDialogs_DemoDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CSystemDialogs_DemoDlg)
	enum { IDD = IDD_SYSTEMDIALOGS_DEMO_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSystemDialogs_DemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAddRemoveProgram();
	afx_msg void OnDateTime();
	afx_msg void OnDeviceManager();
	afx_msg void OnDisplay();
	afx_msg void OnFormat();
	afx_msg void OnGameControlers();
	afx_msg void OnInternetOption();
	afx_msg void OnKeyboard();
	afx_msg void OnModem();
	afx_msg void OnMouse();
	afx_msg void OnMultimedia();
	afx_msg void OnNetwork();
	afx_msg void OnPassword();
	afx_msg void OnRegionalSettings();
	afx_msg void OnSound();
	afx_msg void OnSystem();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SYSTEMDIALOGS_DEMODLG_H__1D35A876_B1EC_4DB0_96AD_7D8DABD8F241__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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO Solaris Electronics LLC
United Arab Emirates United Arab Emirates
I was born in Shiraz, a very beautiful famous city in Iran. I started programming when I was 12 years old with GWBASIC. Since now, I worked with various programming languages from Basic, Foxpro, C/C++, Visual Basic, Pascal to MATLAB and now Visual C++.
I graduated from Iran University of Science & Technology in Communication Eng., and now work as a system programmer for a telecommunication industry.
I wrote several programs and drivers for Synthesizers, Power Amplifiers, GPIB, GPS devices, Radio cards, Data Acquisition cards and so many related devices.
I'm author of several books like Learning C (primary and advanced), Learning Visual Basic, API application for VB, Teach Yourself Object Oriented Programming (OOP) and etc.
I'm winner of January, May, August 2003 and April 2005 best article of month competition, my articles are:


You can see list of my articles, by clicking here


Written By
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions