diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/setup/spage_lang.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Winamp/setup/spage_lang.h')
-rw-r--r-- | Src/Winamp/setup/spage_lang.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Src/Winamp/setup/spage_lang.h b/Src/Winamp/setup/spage_lang.h new file mode 100644 index 00000000..f3848ab7 --- /dev/null +++ b/Src/Winamp/setup/spage_lang.h @@ -0,0 +1,42 @@ +#ifndef WINAMP_LANGUAGE_SETUP_PAGE_HEADER +#define WINAMP_LANGUAGE_SETUP_PAGE_HEADER + +#include "./ifc_setuppage.h" + +class setup_page_lang : public ifc_setuppage +{ + +public: + setup_page_lang(); + virtual ~setup_page_lang(); + +public: + size_t AddRef(); + size_t Release(); + HRESULT GetName(bool bShort, const wchar_t **pszName); + HRESULT Save(HWND hwndText); + HRESULT CreateView(HWND hwndParent, HWND *phwnd); + HRESULT Revert(void); + HRESULT IsDirty(void); + HRESULT Validate(void); +protected: + INT_PTR PageDlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam); + INT_PTR OnInitDialog(HWND hwndFocus, LPARAM lParam); + void OnSize(UINT nType, INT cx, INT cy); + void OnCommand(INT nCtrlID, INT nEvntID, HWND hwndCtrl); + INT_PTR OnDeleteItem(INT nCtrlID, DELETEITEMSTRUCT *pdis); + void ListBox_OnItemDelete(DELETEITEMSTRUCT *pdis); + void ListBox_OnSelChange(HWND hwndCtrl); + +private: + size_t ref; + HWND hwnd; + wchar_t szSelectionPath[MAX_PATH]; + +protected: + friend static INT_PTR WINAPI DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); + RECVS_DISPATCH; +}; + + +#endif //WINAMP_LANGUAGE_SETUP_PAGE_HEADER
\ No newline at end of file |