Leaked source code of windows server 2003
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.

61 lines
1.8 KiB

  1. #if !defined(AFX_WARNINGDLG_H__92693AEA_E38D_11D1_8424_006008960A34__INCLUDED_)
  2. #define AFX_WARNINGDLG_H__92693AEA_E38D_11D1_8424_006008960A34__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // WarningDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CWarningDlg dialog
  10. class CWarningDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CWarningDlg(UINT nWarningIds, UINT nTitleIds = 0, CWnd* pParent = NULL); // standard constructor
  15. CWarningDlg::CWarningDlg(LPCTSTR szWarningMessage, UINT nTitleIds = 0, CWnd* pParent =NULL);
  16. // Dialog Data
  17. //{{AFX_DATA(CWarningDlg)
  18. enum { IDD = IDD_WARNINGQUERY };
  19. CEdit m_editWarning;
  20. //}}AFX_DATA
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CWarningDlg)
  24. protected:
  25. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  26. //}}AFX_VIRTUAL
  27. // Operations
  28. public:
  29. void EnableDoNotShowAgainCheck( BOOL bEnable = TRUE ); // call before DoModal
  30. BOOL GetDoNotShowAgainCheck(); // call after DoModal
  31. // Implementation
  32. protected:
  33. // Generated message map functions
  34. //{{AFX_MSG(CWarningDlg)
  35. virtual BOOL OnInitDialog();
  36. afx_msg void OnYes();
  37. afx_msg void OnNo();
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. UINT m_nWarningIds;
  41. UINT m_nTitleIds;
  42. CString m_sTitle;
  43. CString m_sWarning;
  44. BOOL m_bEnableShowAgainCheckbox;
  45. BOOL m_bDoNotShowAgainCheck;
  46. };
  47. //{{AFX_INSERT_LOCATION}}
  48. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  49. #endif // !defined(AFX_WARNINGDLG_H__92693AEA_E38D_11D1_8424_006008960A34__INCLUDED_)