Click here to Skip to main content
15,892,746 members
Articles / Desktop Programming / MFC

Resource DLLs and Language Selection Menu

Rate me:
Please Sign up or sign in to vote.
4.64/5 (37 votes)
22 Sep 2005CPOL12 min read 338.9K   7.3K   131  
A ready-to-use class to load resource DLLs and create a Languages menu.
// MyAppView.h : interface of the CMyAppView class
//


#pragma once


class CMyAppView : public CEditView
{
protected: // create from serialization only
	CMyAppView();
	DECLARE_DYNCREATE(CMyAppView)

// Attributes
public:
	CMyAppDoc* GetDocument() const;

// Operations
public:

// Overrides
	public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:

// Implementation
public:
	virtual ~CMyAppView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MyAppView.cpp
inline CMyAppDoc* CMyAppView::GetDocument() const
   { return reinterpret_cast<CMyAppDoc*>(m_pDocument); }
#endif

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
Web Developer
Belgium Belgium
In December 2004, I left my day job to create appTranslator (http://www.apptranslator.com), a great localization tool for your Visual C++ applications.

appTranslator helps you painlessly manage the translations of your applications thanks to WYWIWYG translation-oriented resource editors, immediate tracking of items to be translated, immediate tracking of new and modified items, merging of translations, and more...

Don't hesitate to drop me a line. I love feedback Wink | ;-)

Comments and Discussions