OptionsSheet.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #if !defined(AFX_OPTIONSSHEET_H__D8A13849_DBC6_4CD6_A981_E572ECDC2E94__INCLUDED_)
  2. #define AFX_OPTIONSSHEET_H__D8A13849_DBC6_4CD6_A981_E572ECDC2E94__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // OptionsSheet.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // COptionsSheet
  10. class CSetPropertyPageTitle
  11. {
  12. public:
  13. CSetPropertyPageTitle()
  14. {
  15. }
  16. ~CSetPropertyPageTitle()
  17. {
  18. }
  19. void SetTitle(CString csKey, CString csDefault, AFX_OLDPROPSHEETPAGE &psp)
  20. {
  21. CString csText = theApp.m_Language.GetString(csKey, csDefault);
  22. if(csText.GetLength() > 0)
  23. {
  24. pTitle = new char(csText.GetLength());
  25. strcpy(pTitle, csText);
  26. psp.pszTitle = pTitle;
  27. psp.dwFlags |= PSP_USETITLE;
  28. }
  29. }
  30. char *pTitle;
  31. };
  32. class COptionsSheet : public CPropertySheet
  33. {
  34. DECLARE_DYNAMIC(COptionsSheet)
  35. // Construction
  36. public:
  37. COptionsSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  38. // Attributes
  39. public:
  40. // Operations
  41. public:
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(COptionsSheet)
  45. public:
  46. virtual int DoModal();
  47. virtual BOOL OnInitDialog();
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. public:
  51. virtual ~COptionsSheet();
  52. // Generated message map functions
  53. protected:
  54. CPropertyPage *m_pKeyBoardOptions;
  55. CPropertyPage *m_pGeneralOptions;
  56. CPropertyPage *m_pQuickPasteOptions;
  57. CPropertyPage *m_pUtilites;
  58. CPropertyPage *m_pStats;
  59. CPropertyPage *m_pTypes;
  60. CPropertyPage *m_pAbout;
  61. CPropertyPage *m_pFriends;
  62. //{{AFX_MSG(COptionsSheet)
  63. // NOTE - the ClassWizard will add and remove member functions here.
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_OPTIONSSHEET_H__D8A13849_DBC6_4CD6_A981_E572ECDC2E94__INCLUDED_)