HoverRace  2.0
VideoAudioPrefsPage.h
Go to the documentation of this file.
1 #ifdef HR_LEGACY_BUILD
2 
3 // VideoAudioPrefsPage.h
4 // Header for the "Video and Audio" preferences page.
5 //
6 // Copyright (c) 2009 Michael Imamura.
7 //
8 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
9 // you may not use this file except in compliance with the License.
10 //
11 // A copy of the license should have been attached to the package from which
12 // you have taken this file. If you can not find the license you can not use
13 // this file.
14 //
15 //
16 // The author makes no representations about the suitability of
17 // this software for any purpose. It is provided "as is" "AS IS",
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19 // implied.
20 //
21 // See the License for the specific language governing permissions
22 // and limitations under the License.
23 //
24 
25 #pragma once
26 
27 #include "../../engine/Util/OS.h"
28 
29 #include "PrefsPage.h"
30 
31 namespace HoverRace {
32 namespace Client {
33 
34 class GameDirector;
35 
36 class VideoAudioPrefsPage : public PrefsPage
37 {
38  typedef PrefsPage SUPER;
39  public:
40  VideoAudioPrefsPage(GameDirector *app);
41  virtual ~VideoAudioPrefsPage();
42 
43  private:
44  static const Util::OS::Monitor *GetSelectedMonitor(HWND hwnd,
45  const Util::OS::monitors_t *monitors);
46  static Util::OS::Resolution *GetSelectedResolution(HWND hwnd);
47  static void UpdateResolutionList(HWND hwnd, Util::OS::monitors_t *monitors);
48  static void InitMonitorList(HWND hwnd, Util::OS::monitors_t *monitors);
49 
50  protected:
51  virtual BOOL DlgProc(HWND pWindow, UINT message, WPARAM wparam, LPARAM lparam);
52 
53  private:
54  static void UpdateIntensityDialogLabels(HWND pWindow);
55  static void UpdateAudioStatus(HWND hwnd);
56 
57  private:
58  GameDirector *app;
59 };
60 
61 } // namespace Client
62 } // namespace HoverRace
63 #endif
Definition: Announcement.h:24