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.

64 lines
1.5 KiB

  1. // scrmap1.h : header file
  2. //
  3. #include "scripmap.h"
  4. typedef struct _SCRIPT_ENTRY {
  5. struct _SCRIPT_ENTRY *NextPtr;
  6. CScriptMap *scriptData;
  7. DWORD iListIndex;
  8. BOOL DeleteCurrent;
  9. BOOL WriteNew;
  10. } SCRIPT_ENTRY, *PSCRIPT_ENTRY;
  11. ////////////////////////////////////////////////////////////////////////////////////
  12. // ScrMap1 dialog
  13. class ScrMap1 : public CGenPage
  14. {
  15. DECLARE_DYNCREATE(ScrMap1)
  16. // Construction
  17. public:
  18. ScrMap1();
  19. ~ScrMap1();
  20. // Dialog Data
  21. //{{AFX_DATA(ScrMap1)
  22. enum { IDD = IDD_SCRIPTMAP1 };
  23. CListBox m_lboxScriptMap;
  24. //}}AFX_DATA
  25. CRegKey *m_rkScriptKey;
  26. // Overrides
  27. // ClassWizard generate virtual function overrides
  28. //{{AFX_VIRTUAL(ScrMap1)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. virtual void SaveInfo(void);
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. // Generated message map functions
  36. //{{AFX_MSG(ScrMap1)
  37. afx_msg void OnScriptmapaddbutton();
  38. afx_msg void OnScriptmapeditbutton();
  39. afx_msg void OnScriptmapremovebutton();
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnDblclkScriptmaplistbox();
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. BOOL AddScriptEntry(LPCTSTR pchFileExtension, LPCTSTR pchScriptMap, BOOL bExistingEntry);
  45. void DeleteScriptList();
  46. void DeleteScriptMapping(int iCurSel);
  47. BOOL EditScriptMapping(int iCurSel, PSCRIPT_ENTRY pseEditEntry, LPCTSTR pchFileExtension, LPCTSTR pchScriptMap);
  48. DWORD m_ulScriptIndex;
  49. BOOL m_bScriptEntriesExist;
  50. PSCRIPT_ENTRY m_pseScriptMapList;
  51. };