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

Go to sleep! Fade to B/W

Rate me:
Please Sign up or sign in to vote.
4.83/5 (57 votes)
3 Feb 2014CPOL4 min read 220.5K   4.5K   133  
Fading a window from color to black and white like Windows/XP
#if !defined(AFX_PASSWORDDLG_H__C97BA0F2_D204_4703_A9D5_B9BAECF7EECA__INCLUDED_)
#define AFX_PASSWORDDLG_H__C97BA0F2_D204_4703_A9D5_B9BAECF7EECA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PasswordDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPasswordDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CPasswordDlg)
	enum { IDD = IDD_PASSWORD };
	CString	m_szUser;
	CString	m_szPassword;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPasswordDlg)
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PASSWORDDLG_H__C97BA0F2_D204_4703_A9D5_B9BAECF7EECA__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
Chief Technology Officer
Italy Italy
Gained experience working with several private companies, both production and services kind of farms, especially in managerial, as a trainer and marketing/sales as considerable experience in project management.

Completed technical/scientific expertise with several companies and universities working on software engineering, industrial automation and production at various levels, producing CAD for textiles (in the press and yarn, both for design applications and treatment of color and digital printing), incorporation of the farm, factory automation (textiles, plastics, luxury mechanics and dyes) to complete the design of ERP systems (accounting, analytical, warehouse, quality systems, quality control, planning, ...).

Comments and Discussions