Source code of Windows XP (NT5)
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.

62 lines
1.5 KiB

  1. //******************************************************************************
  2. //
  3. // File: WarnDlg.H
  4. //
  5. // Copyright (C) 1994-1997 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. //******************************************************************************
  9. #if !defined(LOCUTIL__WarnDlg_h__INCLUDED)
  10. #define LOCUTIL__WarnDlg_h__INCLUDED
  11. //------------------------------------------------------------------------------
  12. class CWarningsDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CWarningsDlg(const CBufferReport * pBufMsg, LPCTSTR pszTitle = NULL,
  17. eWarningFilter wf = wfWarning, BOOL fShowContext = FALSE,
  18. UINT nMsgBoxFlags = MB_OK, CWnd* pParent = NULL);
  19. // Dialog Data
  20. //{{AFX_DATA(CWarningsDlg)
  21. enum { IDD = IDD_WARNINGS };
  22. CButton m_btnYes;
  23. CButton m_btnCancel;
  24. CButton m_btnNo;
  25. CButton m_btnOK;
  26. //}}AFX_DATA
  27. // Data
  28. protected:
  29. const CBufferReport * m_pBufMsg;
  30. CLString m_stTitle;
  31. eWarningFilter m_wf;
  32. BOOL m_fShowContext;
  33. UINT m_nMsgBoxFlags;
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CWarningsDlg)
  37. public:
  38. virtual int DoModal();
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. void AddString(CEdit * pebc, const CLString & stAdd, int & len);
  45. // Generated message map functions
  46. //{{AFX_MSG(CWarningsDlg)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnYes();
  49. afx_msg void OnNo();
  50. virtual void OnOK();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. #endif // LOCUTIL__WarnDlg_h__INCLUDED