Click here to Skip to main content
15,891,184 members
Articles / Desktop Programming / MFC

CFileDialogST v1.0

Rate me:
Please Sign up or sign in to vote.
4.89/5 (17 votes)
25 Jun 20013 min read 185.8K   4.9K   59  
A CFileDialog implementation using APIs.
#if !defined(AFX_CFILEDIALOGST_DEMODLG_H__5CA27987_3F9A_4C9C_AD49_389B716F7482__INCLUDED_)
#define AFX_CFILEDIALOGST_DEMODLG_H__5CA27987_3F9A_4C9C_AD49_389B716F7482__INCLUDED_

#include "ShadeButtonST.h"
#include "HyperLink.h"

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

class CCFileDialogST_demoDlg : public CDialog
{
public:
	CCFileDialogST_demoDlg(CWnd* pParent = NULL);

	//{{AFX_DATA(CCFileDialogST_demoDlg)
	enum { IDD = IDD_CFILEDIALOGST_DEMO_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCFileDialogST_demoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	//}}AFX_VIRTUAL

protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCFileDialogST_demoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnOpen();
	afx_msg void OnSave();
	afx_msg void OnBrowse();
	//}}AFX_MSG

private:
	CShadeButtonST	m_btnClose;
	CShadeButtonST	m_btnOpen;
	CShadeButtonST	m_btnSave;
	CShadeButtonST	m_btnWeb;
	CShadeButtonST	m_btnMail;
	CShadeButtonST	m_btnBrowse;

	CHyperLink		m_EMailLink;
	CHyperLink		m_HomePageLink;

	DECLARE_MESSAGE_MAP()
};

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

#endif

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

Comments and Discussions