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.

65 lines
1.4 KiB

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