1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // client_configDlg.h : header file
20 #if !defined(AFX_CLIENT_CONFIGDLG_H__B16BC0AD_3679_4AFF_BC6C_3AB03CBC2948__INCLUDED_)
21 #define AFX_CLIENT_CONFIGDLG_H__B16BC0AD_3679_4AFF_BC6C_3AB03CBC2948__INCLUDED_
25 #endif // _MSC_VER > 1000
29 #include "general_dlg.h"
30 #include "display_dlg.h"
31 #include "display_details_dlg.h"
32 #include "display_advanced_dlg.h"
33 #include "system_information_dlg.h"
34 #include "display_information_gl_dlg.h"
35 #include "display_information_d3d_dlg.h"
36 #include "sound_dlg.h"
38 // ***************************************************************************
39 // CClient_configDlg dialog
40 // ***************************************************************************
47 // ***************************************************************************
49 class CClient_configDlg
: public CDialog
53 CClient_configDlg(CWnd
* pParent
= NULL
); // standard constructor
56 CBitmap Bitmaps
[BitmapCount
];
69 CDialog
*Dialogs
[PageCount
];
70 CGeneralDlg GeneralDlg
;
71 CDisplayDlg DisplayDlg
;
72 CDisplayDetailsDlg DisplayDetailsDlg
;
73 CDisplayAdvancedDlg DisplayAdvancedDlg
;
75 CSystemInformationDlg SystemInformationDlg
;
76 CDisplayInformationGlDlg DisplayInformationGLDlg
;
77 CDisplayInformationD3DDlg DisplayInformationD3DDlg
;
79 // Large label top bar string
80 ucstring TopLargeLabel
;
83 void InvalidateBar ();
87 BOOL
UpdateData ( BOOL bSaveAndValidate
);
89 void setPage (uint pageId
);
90 void translateTree ();
91 void changeLanguage (const char *language
);
94 //{{AFX_DATA(CClient_configDlg)
95 enum { IDD
= IDD_CLIENT_CONFIG_DIALOG
};
99 // ClassWizard generated virtual function overrides
100 //{{AFX_VIRTUAL(CClient_configDlg)
102 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
103 virtual BOOL
OnNotify(WPARAM wParam
, LPARAM lParam
, LRESULT
* pResult
);
111 // Hwnd to stringId map
112 std::map
<HWND
, std::string
> _HwndMap
;
114 // Generated message map functions
115 //{{AFX_MSG(CClient_configDlg)
116 virtual BOOL
OnInitDialog();
117 afx_msg
void OnSysCommand(UINT nID
, LPARAM lParam
);
118 afx_msg
void OnPaint();
119 afx_msg HCURSOR
OnQueryDragIcon();
120 afx_msg
void OnApply();
121 afx_msg
void OnDefault();
122 afx_msg
void OnLaunch();
125 virtual void OnCancel();
127 DECLARE_MESSAGE_MAP()
130 //{{AFX_INSERT_LOCATION}}
131 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
133 #endif // !defined(AFX_CLIENT_CONFIGDLG_H__B16BC0AD_3679_4AFF_BC6C_3AB03CBC2948__INCLUDED_)