Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef __DIALOG_WITH_CHECKBOX_H
  9. #define __DIALOG_WITH_CHECKBOX_H
  10. #pragma once
  11. #include "afxwin.h"
  12. struct P4File_t;
  13. // CDialogWithCheckbox dialog
  14. class CDialogWithCheckbox : public CDialog
  15. {
  16. DECLARE_DYNAMIC(CDialogWithCheckbox)
  17. public:
  18. CDialogWithCheckbox( const char *pszTitleText, const char *pszDialogText, const char *pszCheckboxText, bool bCheckState = false, bool bDisabled = false, CWnd* pParent = NULL ); // constructor
  19. virtual ~CDialogWithCheckbox();
  20. // Dialog Data
  21. enum { IDD = IDD_DIALOG_WITH_CHECKBOX };
  22. protected:
  23. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  24. DECLARE_MESSAGE_MAP()
  25. public:
  26. CStatic m_DialogTextControl;
  27. CButton m_CheckmarkControl;
  28. CStatic m_IconControl;
  29. CString m_strTitleText;
  30. CString m_strDialogText;
  31. CString m_strCheckboxText;
  32. afx_msg void OnBnClickedOk();
  33. afx_msg void OnBnClickedCancel();
  34. virtual BOOL OnInitDialog();
  35. bool IsCheckboxChecked();
  36. int m_bDefaultCheckState;
  37. bool m_bCheckMark;
  38. bool m_bClickedOk;
  39. bool m_bCheckMarkDisabled;
  40. };
  41. #endif // __SYNC_FILE_DIALOG_H