Click here to Skip to main content
12,765,176 members (37,050 online)
Click here to Skip to main content


20 bookmarked
Posted 21 Jan 2005

RunLength Compression

, 21 Jan 2005 CPOL
Fast Run-Length coding with variable runs sizes.
// 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
	CCompressDlg(CWnd* pParent = NULL);	// standard constructor

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

	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
	HICON m_hIcon;

	// Generated message map functions
	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();
	CComboBox m_comboBitsPerSample;
	int m_nBitsPerSample;

// 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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

You may also be interested in...

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