1
0

options.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./browserUiCommon.h"
  7. #include "./obj_ombrowser.h"
  8. HRESULT BrowserOptions_ShowDialog(obj_ombrowser *browserManager, HWND hOwner, UINT style, BROWSEROPTIONSCALLBACK callback, ULONG_PTR user);
  9. typedef HWND (CALLBACK *OPTIONSPAGECREATOR)(HWND /*hParent*/, UINT /*style*/);
  10. HRESULT BrowserOptions_RegisterPage(OPTIONSPAGECREATOR creatorFn);
  11. HRESULT BrowserOptions_UnregisterPage(OPTIONSPAGECREATOR creatorFn);
  12. #define BOM_FIRST (WM_APP + 10)
  13. #define BOM_GETBROWSER (BOM_FIRST + 0) // wParam - not used; lParam = (LPARAM)(obj_ombrowser**)ppBrowser; Return TRUE on success;
  14. #define BrowserOptions_GetBrowser(/*HWND*/ __hOptions, /*obj_ombrowser** */ __ppBrowser)\
  15. ((BOOL)SENDMSG((__hOptions), BOM_GETBROWSER, 0, (LPARAM)(__ppBrowser)))
  16. typedef struct __BOMCONFIGCHANGED
  17. {
  18. const GUID *configUid;
  19. UINT valueId;
  20. ULONG_PTR value;
  21. } BOMCONFIGCHANGED;
  22. #define BOM_CONFIGCHANGED (BOM_FIRST + 1) // wParam - not used; lParam = (LPARAM)(BOMCONFIGCHANGED*)configData;
  23. #define BrowserOptions_ConfigChanged(/*HWND*/ __hOptions, /*BOM_CONFIGCHANGED* */ __configData)\
  24. (SENDMSG((__hOptions), BOM_CONFIGCHANGED, 0, (LPARAM)(__ppBrowser)))
  25. // Internal Helpers
  26. BOOL Options_SetCheckbox(HWND hwnd, UINT controlId, HRESULT checkedState);
  27. #endif //NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HEADER