查看单个帖子
旧 2007-07-22, 05:55 PM   #2
yogy
高级会员
 
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
yogy 向着好的方向发展
默认 回复: 多语言设置sample

2.hhView.h
// hhView.h : interface of the CHhView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_HHVIEW_H__5F292128_DDD8_4A5B_8FEF_7E6BD665B77C__INCLUDED_)
#define AFX_HHVIEW_H__5F292128_DDD8_4A5B_8FEF_7E6BD665B77C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

extern CString szValue;
class CHhView : public CView
{
protected: // create from serialization only
CHhView();
DECLARE_DYNCREATE(CHhView)
void LoadAllLanguage();
void SetMenuStrings();
// Attributes
public:
CHhDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHhView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHhView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CHhView)
afx_msg void OnMenuitemE();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in hhView.cpp
inline CHhDoc* CHhView::GetDocument()
{ return (CHhDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HHVIEW_H__5F292128_DDD8_4A5B_8FEF_7E6BD665B77C__INCLUDED_)
yogy离线中   回复时引用此帖