Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.8 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // STATUSPN.CPP - Implementation of CIFrmStatusPane
  7. //
  8. // HISTORY:
  9. //
  10. // 9/11/99 vyung Created.
  11. //
  12. // Class which will handle the creation of an Iframe which is hosted in the mainpane.
  13. #ifndef _STATUSPN_H_
  14. #define _STATUSPN_H_
  15. #include <tchar.h>
  16. #include <comdef.h> // for COM interface definitions
  17. #include <exdisp.h>
  18. #include <mshtml.h>
  19. #include <exdispid.h>
  20. #include "cunknown.h"
  21. #include "obshel.h"
  22. #include "obweb.h"
  23. class CIFrmStatusPane
  24. {
  25. public:
  26. CIFrmStatusPane ();
  27. ~CIFrmStatusPane ();
  28. // CIFrmStatusPane Members
  29. virtual HRESULT InitStatusPane (IObWebBrowser* pObWebBrowser);
  30. virtual HRESULT AddItem (BSTR bstrText, int iIndex);
  31. virtual HRESULT SelectItem (int iIndex);
  32. virtual HRESULT SetImageSrc(WCHAR* szID, BSTR bstrPath);
  33. virtual HRESULT ExecScriptFn(BSTR bstrScriptFn, VARIANT* pvarRet);
  34. private:
  35. HWND m_hStatusWnd;
  36. HWND m_hwndParent;
  37. IDispatch* m_pDispEvent;
  38. IObWebBrowser* m_pObWebBrowser;
  39. int m_iCurrentSelection;
  40. int m_iTotalItems;
  41. HRESULT GetElement (WCHAR* szHTMLId, IHTMLElement** lpElem);
  42. HRESULT GetFrame (IHTMLWindow2** pFrWin);
  43. HRESULT GetElementFromCollection (IHTMLElementCollection* pColl, WCHAR* szHTMLId, IHTMLElement** lpElem);
  44. HRESULT SetSelectionAttributes (int iIndex, BOOL bActive);
  45. };
  46. #endif