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.

73 lines
2.0 KiB

  1. #if !defined(AFX_ERRORDLG_H__E6A84A73_2471_4E02_848B_2263C157998A__INCLUDED_)
  2. #define AFX_ERRORDLG_H__E6A84A73_2471_4E02_848B_2263C157998A__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ErrorDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CErrorDlg dialog
  10. class CErrorDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CErrorDlg(
  15. DWORD dwWin32ErrCode,
  16. DWORD dwFileId,
  17. int iLineNumber
  18. );
  19. // Dialog Data
  20. //{{AFX_DATA(CErrorDlg)
  21. enum { IDD = IDD_ERROR };
  22. CStatic m_staticSeperator;
  23. BOOL m_bDetails;
  24. CString m_cstrDetails;
  25. CString m_cstrErrorText;
  26. //}}AFX_DATA
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CErrorDlg)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. // Generated message map functions
  36. //{{AFX_MSG(CErrorDlg)
  37. afx_msg void OnDetails();
  38. virtual void OnOK();
  39. virtual BOOL OnInitDialog();
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. private:
  43. void FillErrorText ();
  44. CRect m_rcBig;
  45. CRect m_rcSmall;
  46. DWORD m_dwWin32ErrCode;
  47. int m_iLineNumber;
  48. DWORD m_dwFileId;
  49. };
  50. #define PopupError(err) { CMainFrame *pFrm = GetFrm(); \
  51. if (pFrm) \
  52. pFrm->PostMessage (WM_POPUP_ERROR, \
  53. WPARAM(err), \
  54. MAKELPARAM(__LINE__, __FILE_ID__)); };
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_ERRORDLG_H__E6A84A73_2471_4E02_848B_2263C157998A__INCLUDED_)