spage_lang.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef WINAMP_LANGUAGE_SETUP_PAGE_HEADER
  2. #define WINAMP_LANGUAGE_SETUP_PAGE_HEADER
  3. #include "./ifc_setuppage.h"
  4. class setup_page_lang : public ifc_setuppage
  5. {
  6. public:
  7. setup_page_lang();
  8. virtual ~setup_page_lang();
  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. INT_PTR OnDeleteItem(INT nCtrlID, DELETEITEMSTRUCT *pdis);
  24. void ListBox_OnItemDelete(DELETEITEMSTRUCT *pdis);
  25. void ListBox_OnSelChange(HWND hwndCtrl);
  26. private:
  27. size_t ref;
  28. HWND hwnd;
  29. wchar_t szSelectionPath[MAX_PATH];
  30. protected:
  31. friend static INT_PTR WINAPI DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  32. RECVS_DISPATCH;
  33. };
  34. #endif //WINAMP_LANGUAGE_SETUP_PAGE_HEADER