Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cDXSettingsDlg.h
Go to the documentation of this file.
1 //
6 //
7 
8 #ifndef _INC_cDXSettingsDlg_H
9 #define _INC_cDXSettingsDlg_H
10 #ifndef NO_PRAGMA_ONCE
11 #pragma once
12 #endif
13 
14 #include "cDXSettings.h"
15 #include "cDXSettingsDlgIds.h"
16 
17 #ifdef USE_DX9
18 
21 
22 namespace Gray3D
23 {
24  class GRAY3D_LINK cDXSettingsDlg : public cWndHandle // cWndDialogBase
25  {
29 
30  public:
31  const DLGID_t k_IDD = IDD_DisplayAdvanced; // my resource id. may be same as my GetDlgCtrlID()
32 
33  private:
34  static cDXSettingsDlg* sm_pSettingsDlg; // Singleton ?
35  const cDXEnumeration& m_rEnumeration;
36  cDXSettings m_d3dSettings;
37 
38  public:
39  cDXSettingsDlg( const cDXEnumeration& rEnumeration, cDXSettings* pSettings);
40  ~cDXSettingsDlg();
41 
42  INT_PTR ShowDialog( HWND hwndParent, RESOURCEID_t idd );
43  INT_PTR DialogProc( HWND hDlg, WINMSG_t msg, WPARAM wParam, LPARAM lParam );
44 
45  void GetFinalSettings( cDXSettings* pSettings ) const
46  { *pSettings = m_d3dSettings; }
47 
48  private:
49  // cWndComboBox
50  void ComboBoxAdd( DLGID_t id, void* pData, LPCTSTR pstrDesc );
51  void ComboBoxSelect( DLGID_t id, void* pData );
52  void* ComboBoxSelected( DLGID_t id );
53  bool ComboBoxSomethingSelected( DLGID_t id );
54  UINT ComboBoxCount( DLGID_t id ) const;
55  void ComboBoxSelectIndex( DLGID_t id, int index );
56  void ComboBoxClear( DLGID_t id );
57  bool ComboBoxContainsText( DLGID_t id, LPCTSTR pstrText );
58 
59  void AdapterChanged( void );
60  void DeviceChanged( void );
61  void WindowedFullScreenChanged( void );
62  void AdapterFormatChanged( void );
63  void ResolutionChanged( void );
64  void RefreshRateChanged( void );
65  void BackBufferFormatChanged( void );
66  void DepthStencilBufferFormatChanged( void );
67  void MultisampleTypeChanged( void );
68  void MultisampleQualityChanged( void );
69  void VertexProcessingChanged( void );
70  void PresentIntervalChanged( void );
71  void DeviceClipChanged( void );
72 
73  static INT_PTR CALLBACK DialogProcHelper( HWND hDlg, WINMSG_t msg, WPARAM wParam, LPARAM lParam );
74  };
75 };
76 #endif // USE_DX9
77 #endif
#define GRAY3D_LINK
Definition: Gray3D.h:15
UINT WINMSG_t
Supplement _WIN32 "windows.h".
Definition: WinTypes.h:111
#define IDD_DisplayAdvanced
Definition: cDXSettingsDlgIds.h:6
Definition: Gray3D.cpp:12
UINT DLGID_t
old window format this was a WORD, EX format this is UINT32.
Definition: cResDialog.h:68
WORD RESOURCEID_t
A resource in .RC attached to a file/module. like MAKEINTRESOURCE(). https://docs....
Definition: cResourceBase.h:19
uint16 index
Definition: sample3.cpp:29