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

PicZoom: A Photo Viewer Created in OpenGL

Rate me:
Please Sign up or sign in to vote.
4.86/5 (63 votes)
16 Feb 2011CPOL16 min read 160.7K   11.6K   150  
PicZoom: A Photo Viewer created in OpenGL
// InstallPicZoomDlg.h : header file
//

#if !defined(AFX_INSTALLPICZOOMDLG_H__A7936014_54F0_4A96_AEF7_8AC664AF2619__INCLUDED_)
#define AFX_INSTALLPICZOOMDLG_H__A7936014_54F0_4A96_AEF7_8AC664AF2619__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CInstallPicZoomDlg dialog

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

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

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

private:

	bool CopyExe();
	bool CreateFolder();
	bool DoInstall();
	bool DoUnInstall();

	bool DeleteFile();
	bool DeleteFolder(); 
	void AppendResult(CString cs );
	CString m_csResult;

// Implementation
protected:
	HICON m_hIcon;


	// Generated message map functions
	//{{AFX_MSG(CInstallPicZoomDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnExit();
	afx_msg void OnInstall();
	afx_msg void OnUnInstall();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_INSTALLPICZOOMDLG_H__A7936014_54F0_4A96_AEF7_8AC664AF2619__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
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions