Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

RunLength Compression

, 21 Jan 2005 CPOL
Fast Run-Length coding with variable runs sizes.
runlength_demo.zip
CompressDemo.exe
runlength_src.zip
CompressDemo.clw
CompressDemo.dsp
CompressDemo.dsw
res
Compress.ico
// CompressDlg.h : header file
//

#include "afxwin.h"
#if !defined(AFX_CompressDLG_H__CA7F3567_939A_11D7_B8FA_00C0DF05DA5F__INCLUDED_)
#define AFX_CompressDLG_H__CA7F3567_939A_11D7_B8FA_00C0DF05DA5F__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCompressDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CCompressDlg)
	enum { IDD = IDD_Compress_DIALOG };
	int		m_nComboAlgorithm;
	CString	m_strPTFile;
	CString	m_strCTFile;
	CString	m_strDPTFile;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCompressDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnDecompress();
	afx_msg void OnPTFBrowse();
	afx_msg void OnCTFBrowse();
	afx_msg void OnDPTFBrowse();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CComboBox m_comboBitsPerSample;
	int m_nBitsPerSample;
};

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

#endif // !defined(AFX_CompressDLG_H__CA7F3567_939A_11D7_B8FA_00C0DF05DA5F__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)

Share

About the Author


| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 21 Jan 2005
Article Copyright 2005 by Hatem Mostafa
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid