shadowswitcherdlg.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // ShadowSwitcherDlg.h : header file
  2. //
  3. #if !defined(AFX_SHADOWSWITCHERDLG_H__7054CA7E_8EBD_4F97_8B90_24FC1B610A29__INCLUDED_)
  4. #define AFX_SHADOWSWITCHERDLG_H__7054CA7E_8EBD_4F97_8B90_24FC1B610A29__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CShadowSwitcherDlg dialog
  10. #define StringSize 1024
  11. class CShadowSwitcherDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. bool CheckArtPath();
  16. CShadowSwitcherDlg(CWnd* pParent = NULL); // standard constructor
  17. CShadowSwitcherDlg::~CShadowSwitcherDlg();
  18. // Dialog Data
  19. //{{AFX_DATA(CShadowSwitcherDlg)
  20. enum { IDD = IDD_SHADOWSWITCHER_DIALOG };
  21. CButton m_btnShadow;
  22. CButton m_btnRetail;
  23. CButton m_btnDelete;
  24. CStatic m_text;
  25. //}}AFX_DATA
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CShadowSwitcherDlg)
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. protected:
  33. HICON m_hIcon;
  34. // Generated message map functions
  35. //{{AFX_MSG(CShadowSwitcherDlg)
  36. virtual BOOL OnInitDialog();
  37. afx_msg void OnPaint();
  38. afx_msg HCURSOR OnQueryDragIcon();
  39. afx_msg void OnDelete();
  40. afx_msg void OnRetail();
  41. afx_msg void OnShadow();
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. private:
  45. HKEY m_hKey;
  46. char m_achExePath[StringSize];
  47. char m_achArtPath[StringSize];
  48. char m_achShadowPath[StringSize];
  49. char m_achRetailPath[StringSize];
  50. char m_achCfgSave[StringSize];
  51. char m_achCfgFile[StringSize];
  52. char m_achPID[StringSize];
  53. bool m_bShadow;
  54. bool m_bInstalled;
  55. void DeleteDirectory(char* pch);
  56. void CopyDirectory(char* pchFrom, char* pchTo);
  57. bool GetRegistrySetting(char* pszValue, char* pszResult, DWORD length);
  58. void SetRegistrySetting(char *pszValue, char *pszResult);
  59. void Error(char* psz);
  60. void Install();
  61. void Update();
  62. void UpdateText(char* ps);
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_SHADOWSWITCHERDLG_H__7054CA7E_8EBD_4F97_8B90_24FC1B610A29__INCLUDED_)