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.

72 lines
1.9 KiB

  1. #ifndef APDLG_H
  2. #define APDLG_H
  3. #include "basedlg.h"
  4. #include "ctllogic.h"
  5. #include "apdlglog.h"
  6. #define SETTINGSCURRENTPAGECOUNT 5
  7. #define IDH_SELECT_CONTENT_TYPE 10110
  8. #define IDH_SELECT_ACTION 10111
  9. #define IDH_PROMPT_ME_EACH_TIME 10112
  10. #define IDH_TAKE_NO_ACTION 10113
  11. class CAutoPlayDlg : public CBaseDlg
  12. {
  13. public:
  14. CAutoPlayDlg();
  15. ~CAutoPlayDlg();
  16. HRESULT Init(LPWSTR pszDrive, int iDriveType);
  17. protected:
  18. LRESULT OnInitDialog(WPARAM wParam, LPARAM lParam);
  19. LRESULT OnNotify(WPARAM wParam, LPARAM lParam);
  20. LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
  21. LRESULT OnDestroy(WPARAM wParam, LPARAM lParam);
  22. LRESULT OnHelp(WPARAM wParam, LPARAM lParam);
  23. LRESULT OnContextMenu(WPARAM wParam, LPARAM lParam);
  24. private:
  25. LRESULT _OnApply();
  26. private:
  27. HRESULT _UpdateLowerPane();
  28. HRESULT _UpdateRestoreButton(BOOL fPromptEachTime);
  29. HRESULT _SelectRadioButton(BOOL fPromptEachTime);
  30. HRESULT _SelectListViewActionsItem(LPCWSTR pszHandlerDefault);
  31. HRESULT _OnListViewActionsSelChange();
  32. HRESULT _UpdateApplyButton();
  33. HRESULT _OnRadio(int i);
  34. HRESULT _OnRestoreDefault();
  35. HRESULT _InitDataObjects();
  36. HRESULT _InitListView();
  37. HRESULT _FillListView();
  38. HRESULT _InitListViewActions();
  39. HRESULT _FillListViewActions(CContentTypeData* pdata);
  40. private:
  41. CContentTypeData* _rgpContentTypeData[7];
  42. int _iDriveType;
  43. WCHAR _szDrive[MAX_PATH];
  44. HIMAGELIST _himagelist;
  45. BOOL _fAtLeastOneAction;
  46. BOOL _fIgnoreListViewItemStateChanges;
  47. CUILComboBoxEx<CContentTypeData> _uilListView;
  48. CUILListView<CHandlerData> _uilListViewActions;
  49. CDLManager<CContentTypeData> _dlmanager;
  50. };
  51. #endif //APDLG_H