Use configured resolution for login/outgame/ingame
[ryzomcore.git] / ryzom / tools / client / client_config / client_configDlg.h
blob88277f934ca2628566c28c006938fe1cfeb1a493
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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_
23 #if _MSC_VER > 1000
24 #pragma once
25 #endif // _MSC_VER > 1000
27 #include "bar.h"
28 #include "database.h"
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 // ***************************************************************************
42 enum
44 TreeId = 255,
47 // ***************************************************************************
49 class CClient_configDlg : public CDialog
51 // Construction
52 public:
53 CClient_configDlg(CWnd* pParent = NULL); // standard constructor
55 // Bitmaps
56 CBitmap Bitmaps[BitmapCount];
58 // Fonts
59 CFont BarFont;
61 // Controls
62 CStatic Left;
63 CStatic Icon;
64 CBar Top;
65 CBar Bottom;
66 CTreeCtrl Tree;
68 // Dialogs
69 CDialog *Dialogs[PageCount];
70 CGeneralDlg GeneralDlg;
71 CDisplayDlg DisplayDlg;
72 CDisplayDetailsDlg DisplayDetailsDlg;
73 CDisplayAdvancedDlg DisplayAdvancedDlg;
74 CSoundDlg SoundDlg;
75 CSystemInformationDlg SystemInformationDlg;
76 CDisplayInformationGlDlg DisplayInformationGLDlg;
77 CDisplayInformationD3DDlg DisplayInformationD3DDlg;
79 // Large label top bar string
80 ucstring TopLargeLabel;
82 // Methods
83 void InvalidateBar ();
85 // Overrided
86 virtual
87 BOOL UpdateData ( BOOL bSaveAndValidate );
89 void setPage (uint pageId);
90 void translateTree ();
91 void changeLanguage (const char *language);
93 // Dialog Data
94 //{{AFX_DATA(CClient_configDlg)
95 enum { IDD = IDD_CLIENT_CONFIG_DIALOG };
96 CButton ApplyCtrl;
97 //}}AFX_DATA
99 // ClassWizard generated virtual function overrides
100 //{{AFX_VIRTUAL(CClient_configDlg)
101 protected:
102 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
103 virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
104 //}}AFX_VIRTUAL
106 // Implementation
107 protected:
108 HICON m_hIcon;
109 uint _CurrentPage;
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();
123 //}}AFX_MSG
124 public:
125 virtual void OnCancel();
126 virtual void OnOK();
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_)