Browser.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NULLSOFT_BROWSERH
  2. #define NULLSOFT_BROWSERH
  3. #include "../nu/HTMLContainer.h"
  4. #include "wa_ipc.h"
  5. class Browser : public HTMLContainer
  6. {
  7. public:
  8. Browser();
  9. ~Browser();
  10. static WNDCLASS *wc;
  11. static HRESULT CALLBACK WindowProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  12. void NavigateToName(LPCTSTR pszUrl);
  13. void Resized(unsigned long width, unsigned long height);
  14. STDMETHOD (GetExternal)(IDispatch __RPC_FAR *__RPC_FAR *ppDispatch);
  15. void ToggleVisible(int showing);
  16. embedWindowState state;
  17. bool minimised;
  18. void SetMenuCheckMark();
  19. virtual void OnNavigateComplete();
  20. HWND CreateHWND();
  21. DWORD threadId;
  22. };
  23. class UpdateBrowser : public HTMLContainer
  24. {
  25. public:
  26. HWND CreateHWND();
  27. static WNDCLASS *wc;
  28. static HRESULT CALLBACK WindowProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  29. void NavigateToName(LPCTSTR pszUrl);
  30. void Resized(unsigned long width, unsigned long height);
  31. STDMETHOD (GetExternal)(IDispatch __RPC_FAR *__RPC_FAR *ppDispatch);
  32. embedWindowState state;
  33. virtual void OnNavigateComplete();
  34. };
  35. HRESULT UpdateWindow_Show(LPCSTR pszUrl);
  36. #endif