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.

53 lines
1.7 KiB

  1. // Copyright (c) 1999 Microsoft Corporation. All Rights Reserved.
  2. #if !defined(AFX_ADMINDLG_H__6B752DC2_A167_11D1_A5E1_00AA0037E04F__INCLUDED_)
  3. #define AFX_ADMINDLG_H__6B752DC2_A167_11D1_A5E1_00AA0037E04F__INCLUDED_
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // AdminDlg.h : header file
  8. //
  9. #include <atlctl.h>
  10. #include <strmif.h>
  11. #include "resource.h"
  12. #include "msdvdopt.h"
  13. #include "dvdopt.h"
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CAdminDlg dialog
  16. class COverrideDlg : public CDialogImpl<COverrideDlg>
  17. {
  18. // Construction
  19. public:
  20. COverrideDlg(IMSWebDVD* pDvd = NULL); // standard constructor
  21. BEGIN_MSG_MAP(COverrideDlg)
  22. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  23. MESSAGE_HANDLER(WM_HELP, OnHelp)
  24. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  25. COMMAND_ID_HANDLER(IDOK, OnOK)
  26. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  27. END_MSG_MAP()
  28. enum { IDD = IDD_PARENT_OVERRIDE };
  29. void SetDvd(IMSWebDVD *pDvd) { m_pDvd = pDvd; }
  30. void SetReason(PG_OVERRIDE_REASON reason) {m_reason = reason; }
  31. // Implementation
  32. protected:
  33. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  34. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  35. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  36. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  37. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  38. long GetPlayerLevelRequired(long contentLevels);
  39. CComPtr<IMSWebDVD> m_pDvd;
  40. PG_OVERRIDE_REASON m_reason;
  41. };
  42. #endif // !defined(AFX_ADMINDLG_H__6B752DC2_A167_11D1_A5E1_00AA0037E04F__INCLUDED_)