Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / MFC

RC Localization Tool (LocalizeRC)

Rate me:
Please Sign up or sign in to vote.
4.89/5 (53 votes)
14 Jan 2004BSD9 min read 487.8K   9.5K   159  
A tool for localizing/translating Resource Scripts
// CreateWorkspace.cpp : implementation file
//

#include "stdafx.h"
#include "LocalizeRC.h"
#include "CreateWorkspace.h"


// CCreateWorkspace dialog

IMPLEMENT_DYNAMIC(CCreateWorkspace, CDialog)
CCreateWorkspace::CCreateWorkspace(CWnd* pParent /*=NULL*/)
	: CDialog(CCreateWorkspace::IDD, pParent)
	, m_strInputRC(_T(""))
	, m_strLangINI(_T(""))
	, m_strOutputRC(_T(""))
{
}

CCreateWorkspace::~CCreateWorkspace()
{
}

void CCreateWorkspace::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_INPUTRC, m_strInputRC);
	DDX_Text(pDX, IDC_LANGINI, m_strLangINI);
	DDX_Text(pDX, IDC_OUTPUTRC, m_strOutputRC);
}


BEGIN_MESSAGE_MAP(CCreateWorkspace, CDialog)
	ON_BN_CLICKED(IDC_CHNG_INPUTRC, OnBnClickedChngInputrc)
	ON_BN_CLICKED(IDC_CHNG_LANGINI, OnBnClickedChngLangini)
	ON_BN_CLICKED(IDC_CHNG_OUTPUTRC, OnBnClickedChngOutputrc)
	ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()


// CCreateWorkspace message handlers

void CCreateWorkspace::OnBnClickedChngInputrc()
{
	
}

void CCreateWorkspace::OnBnClickedChngLangini()
{
	
}

void CCreateWorkspace::OnBnClickedChngOutputrc()
{
	
}

BOOL CCreateWorkspace::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Load Workspace
	CIniEx IniEx;
	if( !IniEx.Open( strWorkspace ) )
		return false;

	m_strInputRC = IniEx.GetValue( ENT_INPUTRC );
	m_strLangINI = IniEx.GetValue( ENT_LANGINI );
	m_strOutputRC = IniEx.GetValue( ENT_OUTPUTRC );

	UpdateData( false );

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}



void CCreateWorkspace::OnBnClickedOk()
{
	UpdateData( true );

	

	OnOK();
}

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 BSD License


Written By
Web Developer
Germany Germany
Author of the shareware WinCD.

Comments and Discussions