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.

59 lines
1.4 KiB

  1. #ifndef HWPROMPT_H
  2. #define HWPROMPT_H
  3. #include "basedlg.h"
  4. #define MAX_DEVICENAME 50
  5. class CHWPromptDlg : public CBaseDlg
  6. {
  7. public:
  8. CHWPromptDlg();
  9. HRESULT Init(LPCWSTR pszDeviceID);
  10. protected:
  11. virtual ~CHWPromptDlg();
  12. LRESULT OnInitDialog(WPARAM wParam, LPARAM lParam);
  13. LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
  14. LRESULT OnNotify(WPARAM wParam, LPARAM lParam);
  15. virtual LRESULT OnOK(WORD wNotif);
  16. LRESULT OnCancel(WORD wNotif);
  17. protected:
  18. virtual HRESULT _FillListView() = 0;
  19. virtual HRESULT _InitStatics() = 0;
  20. virtual HRESULT _InitSelections() = 0;
  21. protected:
  22. HRESULT _InitStaticsCommon();
  23. HRESULT _SelectListItem(int i);
  24. HRESULT _SelectRadio(int i);
  25. HRESULT _GetSelection(int* pi);
  26. private:
  27. HRESULT _InitListView();
  28. HRESULT _SetDeviceName();
  29. HRESULT _SetTitle();
  30. HRESULT _OnListSelChange();
  31. HRESULT _OnRadio(int iButton);
  32. protected:
  33. virtual LRESULT OnDestroy(WPARAM wParam, LPARAM lParam);
  34. private:
  35. BOOL _fTriedDeviceName;
  36. HICON _hiconInfo;
  37. protected:
  38. WCHAR _szDeviceName[MAX_DEVICENAME];
  39. HICON _hiconTop;
  40. public:
  41. LPWSTR _pszDeviceID;
  42. BOOL _fOpenFolder;
  43. WCHAR _szContentTypeHandler[256];
  44. BOOL _fHandler;
  45. };
  46. #endif //HWPROMPT_H