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/omBrowser/options.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/omBrowser/options.h')
-rw-r--r-- | Src/omBrowser/options.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Src/omBrowser/options.h b/Src/omBrowser/options.h new file mode 100644 index 00000000..e2243c26 --- /dev/null +++ b/Src/omBrowser/options.h @@ -0,0 +1,37 @@ +#ifndef NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HEADER +#define NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include "./browserUiCommon.h" +#include "./obj_ombrowser.h" + + +HRESULT BrowserOptions_ShowDialog(obj_ombrowser *browserManager, HWND hOwner, UINT style, BROWSEROPTIONSCALLBACK callback, ULONG_PTR user); + +typedef HWND (CALLBACK *OPTIONSPAGECREATOR)(HWND /*hParent*/, UINT /*style*/); +HRESULT BrowserOptions_RegisterPage(OPTIONSPAGECREATOR creatorFn); +HRESULT BrowserOptions_UnregisterPage(OPTIONSPAGECREATOR creatorFn); + +#define BOM_FIRST (WM_APP + 10) +#define BOM_GETBROWSER (BOM_FIRST + 0) // wParam - not used; lParam = (LPARAM)(obj_ombrowser**)ppBrowser; Return TRUE on success; +#define BrowserOptions_GetBrowser(/*HWND*/ __hOptions, /*obj_ombrowser** */ __ppBrowser)\ + ((BOOL)SENDMSG((__hOptions), BOM_GETBROWSER, 0, (LPARAM)(__ppBrowser))) + +typedef struct __BOMCONFIGCHANGED +{ + const GUID *configUid; + UINT valueId; + ULONG_PTR value; +} BOMCONFIGCHANGED; + +#define BOM_CONFIGCHANGED (BOM_FIRST + 1) // wParam - not used; lParam = (LPARAM)(BOMCONFIGCHANGED*)configData; +#define BrowserOptions_ConfigChanged(/*HWND*/ __hOptions, /*BOM_CONFIGCHANGED* */ __configData)\ + (SENDMSG((__hOptions), BOM_CONFIGCHANGED, 0, (LPARAM)(__ppBrowser))) + +// Internal Helpers +BOOL Options_SetCheckbox(HWND hwnd, UINT controlId, HRESULT checkedState); + +#endif //NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HEADER
\ No newline at end of file |