root/trunk/AppearancePage.h

Revision 5, 2.7 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 #if !defined(AFX_APPEARANCEPAGE_H__761F33A6_0931_46DD_9DBA_DD75B42075FE__INCLUDED_)
2 #define AFX_APPEARANCEPAGE_H__761F33A6_0931_46DD_9DBA_DD75B42075FE__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // AppearancePage.h : header file
8 //
9 #include "GUIComponents/GenericChildDialog.h"
10 /////////////////////////////////////////////////////////////////////////////
11 // CAppearancePage dialog
12 #include "resource.h"
13 class CAppearancePage : public CRHGenericChildDialog
14 {
15 // Construction
16 public:
17     CAppearancePage(CWnd* pParent = NULL);   // standard constructor
18     virtual int CRHGetDialogID() { return IDD;
19     }
20 // Dialog Data
21     //{{AFX_DATA(CAppearancePage)
22     enum { IDD = IDD_APEARANCE_PAGE };
23     BOOL    m_fullRowSelect;
24     BOOL    m_gridLines;
25     BOOL    m_trackSel;
26     BOOL    m_flatSB;
27     BOOL    m_xpFlat;
28     BOOL    m_semiFlat;
29     BOOL    m_showFocus;
30     BOOL    m_highlight;
31     BOOL    m_coolMenus;
32     BOOL    m_xpstyle;
33     BOOL    m_menuShadows; 
34     //}}AFX_DATA
35
36
37 // Overrides
38     // ClassWizard generated virtual function overrides
39     //{{AFX_VIRTUAL(CAppearancePage)
40     protected:
41     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
42     //}}AFX_VIRTUAL
43     public:
44     void Save()
45     {
46         UpdateData();
47
48         Globals::settings->baseSettings->SetCache("m_fullRowSelect", m_fullRowSelect ? "1":"0");
49         Globals::settings->baseSettings->SetCache("m_gridLines", m_gridLines ? "1":"0");
50         Globals::settings->baseSettings->SetCache("m_trackSel", m_trackSel ? "1":"0");
51         Globals::settings->baseSettings->SetCache("m_flatSB", m_flatSB ? "1":"0");
52         Globals::settings->baseSettings->SetCache("m_xpFlat", m_xpFlat ? "1":"0");
53         Globals::settings->baseSettings->SetCache("m_semiFlat", m_semiFlat ? "1":"0");
54         Globals::settings->baseSettings->SetCache("m_showFocus", m_showFocus ? "1":"0");
55         Globals::settings->baseSettings->SetCache("m_highlight", m_highlight ? "1":"0");
56         Globals::settings->baseSettings->SetCache("m_xpstyle",m_xpstyle ? "1" : "0" );
57         Globals::settings->baseSettings->SetCache("m_coolMenus",m_coolMenus ? "1" : "0");
58         Globals::settings->baseSettings->SetCache("m_menuShadows",m_menuShadows? "1" : "0");       
59         xtAfxData.bXPMode = Globals::settings->baseSettings->GetCache("m_xpstyle") == "1";
60         xtAfxData.bMenuShadows = Globals::settings->baseSettings->GetCache("m_menuShadows") == "1";
61
62
63     }
64
65 // Implementation
66 protected:
67
68     // Generated message map functions
69     //{{AFX_MSG(CAppearancePage)
70     virtual BOOL OnInitDialog();
71     //}}AFX_MSG
72     DECLARE_MESSAGE_MAP()
73 };
74
75 //{{AFX_INSERT_LOCATION}}
76 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
77
78 #endif // !defined(AFX_APPEARANCEPAGE_H__761F33A6_0931_46DD_9DBA_DD75B42075FE__INCLUDED_)
Note: See TracBrowser for help on using the browser.