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

MP3 Rename - a program to rename your MP3s to match their ID3 tags

Rate me:
Please Sign up or sign in to vote.
3.46/5 (10 votes)
10 Nov 2002 102.4K   1.2K   43  
A simple C++ (MFC) program that can rename your MP3 files to match their ID3 tags.
#pragma once
#include "afxwin.h"


// dlgOptions dialog

class dlgOptions : public CDialog
{
	DECLARE_DYNAMIC(dlgOptions)

public:
	dlgOptions(CWnd* pParent = NULL);   // standard constructor
	virtual ~dlgOptions();

// Dialog Data
	enum { IDD = IDD_DLG_OPTIONS };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnBnClickedChkArtist();
	afx_msg void OnBnClickedChkAlbum();
	afx_msg void OnBnClickedChkTrack();
	afx_msg void OnBnClickedChkTitle();
	afx_msg void OnEnChangeEdArtistprefix();
	afx_msg void OnEnChangeEdArtistsuffix();
	afx_msg void OnEnChangeEdAlbumprefix2();
	afx_msg void OnEnChangeEdAlbumsuffix();
	afx_msg void OnEnChangeEdTrackprefix();
	afx_msg void OnEnChangeEdTracsuffix();
	afx_msg void OnEnChangeEdTitleprefix();
	afx_msg void OnEnChangeEdTitlesuffix();
	afx_msg void OnEnChangeEdit1();

	void SetExampleDisplay();

	CString m_str_artistPrefix;
	CString m_str_albumPrefix;
	CString m_str_trackPrefix;
	CString m_str_titlePrefix;
	CString m_str_artistSuffix;
	CString m_str_albumSuffix;
	CString m_str_trackSuffix;
	CString m_str_titleSuffix;
	CString m_str_example;
	CString m_str_separator;
	
	BOOL m_b_Artist;
	BOOL m_b_Album;
	BOOL m_b_Track;
	BOOL m_b_Title;
	
	CEdit m_ed_artistPrefix;
	CEdit m_ed_artistSuffix;
	CEdit m_ed_albumPrefix;
	CEdit m_ed_albumSuffix;
	CEdit m_ed_trackPrefix;
	CEdit m_ed_trackSuffix;
	CEdit m_ed_titlePrefix;
	CEdit m_ed_titleSuffix;

	CStatic m_st_artistPrefix;
	CStatic m_st_artistSuffix;
	CStatic m_st_albumPrefix;
	CStatic m_st_albumSuffix;
	CStatic m_st_trackPrefix;
	CStatic m_st_trackSuffix;
	CStatic m_st_titlePrefix;
	CStatic m_st_titleSuffix;

	void StringReplace(CString&);
};

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
United States United States
it's me... Jonathan D.
from upstate NY....uh....
like my stuff? let me know!

Comments and Discussions