00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_DLGLANGUAGE_H__51A1B5F0_47F7_4FE8_BA61_A8A8AC421054__INCLUDED_)
00023 #define AFX_DLGLANGUAGE_H__51A1B5F0_47F7_4FE8_BA61_A8A8AC421054__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "DlgSkinDialog.h"
00028
00029
00030 class CLanguageDlg : public CSkinDialog
00031 {
00032
00033 public:
00034 CLanguageDlg(CWnd* pParent = NULL);
00035
00036
00037 public:
00038
00039 enum { IDD = IDD_LANGUAGE };
00040
00041 protected:
00042 CStringArray m_pPaths;
00043 CStringArray m_pTitles;
00044 CStringArray m_pPrompts;
00045 CStringArray m_pGUIDirs;
00046 CStringArray m_pLangCodes;
00047 CImageList m_pImages;
00048 int m_nHover;
00049 int m_nDown;
00050 BOOL m_bKeyMode;
00051 protected:
00052 CFont m_fntNormal;
00053 CFont m_fntBold;
00054 CFont m_fntSmall;
00055 HCURSOR m_hArrow;
00056 HCURSOR m_hHand;
00057 CBitmap m_bmHeader;
00058
00059
00060 public:
00061
00062 public:
00063 virtual BOOL PreTranslateMessage(MSG* pMsg);
00064 protected:
00065 virtual void DoDataExchange(CDataExchange* pDX);
00066
00067
00068 void PaintItem(int nItem, CDC* pDC, CRect* pRect);
00069 void DrawWrappedText(CDC* pDC, CRect* pBox, LPCTSTR pszText);
00070 void AddEnglishDefault();
00071 void Enumerate(LPCTSTR pszPath = NULL);
00072 BOOL AddSkin(LPCTSTR pszPath, LPCTSTR pszName);
00073 void Execute(int nItem);
00074
00075
00076 protected:
00077
00078 virtual BOOL OnInitDialog();
00079 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00080 afx_msg void OnPaint();
00081 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00082 afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
00083 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00084 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00085 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00086 afx_msg void OnTimer(UINT nIDEvent);
00087 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
00088 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00089 afx_msg void OnDestroy();
00090 afx_msg void OnClose();
00091 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00092
00093 DECLARE_MESSAGE_MAP()
00094
00095 };
00096
00097
00098
00099 #endif // !defined(AFX_DLGLANGUAGE_H__51A1B5F0_47F7_4FE8_BA61_A8A8AC421054__INCLUDED_)