spage_connect.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef WINAMP_CONNECTIOVITY_SETUP_PAGE_HEADER
  2. #define WINAMP_CONNECTIOVITY_SETUP_PAGE_HEADER
  3. #include "./ifc_setuppage.h"
  4. class setup_page_connect : public ifc_setuppage
  5. {
  6. public:
  7. setup_page_connect();
  8. virtual ~setup_page_connect();
  9. public:
  10. size_t AddRef();
  11. size_t Release();
  12. HRESULT GetName(bool bShort, const wchar_t **pszName);
  13. HRESULT Save(HWND hwndText);
  14. HRESULT CreateView(HWND hwndParent, HWND *phwnd);
  15. HRESULT Revert(void);
  16. HRESULT IsDirty(void);
  17. HRESULT Validate(void);
  18. protected:
  19. INT_PTR PageDlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
  20. INT_PTR OnInitDialog(HWND hwndFocus, LPARAM lParam);
  21. void OnSize(UINT nType, INT cx, INT cy);
  22. void OnCommand(INT nCtrlID, INT nEvntID, HWND hwndCtrl);
  23. void ComboBox_OnSelChange(HWND hwndCtrl);
  24. void UpdateUI(void);
  25. private:
  26. size_t ref;
  27. HWND hwnd;
  28. INT inetMode;
  29. BOOL bPort80;
  30. WCHAR szProxy[MAX_PATH];
  31. protected:
  32. friend static INT_PTR WINAPI DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  33. RECVS_DISPATCH;
  34. };
  35. #endif //WINAMP_CONNECTIOVITY_SETUP_PAGE_HEADER