browserView.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_VIEW_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_VIEW_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./browserUiCommon.h"
  7. #define NWC_OMBROWSERVIEW L"Nullsoft_omBrowserView"
  8. // {13A6B4C7-1881-4a55-B375-26DF2A830825}
  9. static const GUID WTID_BrowserView =
  10. { 0x13a6b4c7, 0x1881, 0x4a55, { 0xb3, 0x75, 0x26, 0xdf, 0x2a, 0x83, 0x8, 0x25 } };
  11. class obj_ombrowser;
  12. HWND BrowserView_Create(obj_ombrowser *browserManager, ifc_omservice *service, HWND hParent, LPCWSTR redirectUrl, UINT style);
  13. // browser common messages
  14. #define BrowserView_GetToolbar(/*HWND*/ __hwndView)\
  15. BrowserControl_GetToolbar(__hwndView)
  16. #define BrowserView_GetStatusbar(/*HWND*/ __hwndView)\
  17. BrowserControl_GetStatusbar(__hwndView)
  18. #define BrowserView_GetHost(/*HWND*/ __hwndView)\
  19. BrowserControl_GetHost(__hwndView)
  20. #define BrowserView_UpdateSkin(/*HWND*/ __hwndView, /*BOOL*/ __fRedraw)\
  21. BrowserControl_UpdateSkin(__hwndView, __fRedraw)
  22. #define BrowserView_GetService(/*HWND*/ __hwndView, /*ifc_omservice** */ __serviceOut)\
  23. BrowserControl_GetService(__hwndView, __serviceOut)
  24. #define BrowserView_Navigate(/*HWND*/ __hwndView, /*LPCWSTR*/ __navigateUrl, /*BOOL*/ __scheduleBlocked)\
  25. BrowserControl_Navigate(__hwndView, __navigateUrl, __scheduleBlocked)
  26. #define BrowserView_NavigateHome(/*HWND*/ __hwndView, /*BOOL*/ __scheduleBlocked)\
  27. BrowserView_Navigate((__hwndView), NAVIGATE_HOME, (__scheduleBlocked))
  28. #define BrowserView_WriteDocument(/*HWND*/ __hwndView, /*BSTR*/ __documentData, /*BOOL*/ __scheduleBlocked)\
  29. BrowserControl_WriteDocument(__hwndView, __documentData, __scheduleBlocked)
  30. #define BrowserView_ShowOperation(/*HWND*/ __hwndView, /*const OPERATIONINFO* */ __pOperationInfo)\
  31. BrowserControl_ShowOperation(__hwndView, __pOperationInfo)
  32. #endif // NULLSOFT_WINAMP_OMBROWSER_VIEW_HEADER