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.

94 lines
4.6 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. // Inlines for AFXHTML.H
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifdef _AFXHTML_INLINE
  13. _AFXHTML_INLINE void CHtmlView::SetRegisterAsBrowser(BOOL bNewValue)
  14. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_RegisterAsBrowser((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  15. _AFXHTML_INLINE void CHtmlView::SetRegisterAsDropTarget(BOOL bNewValue)
  16. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_RegisterAsDropTarget((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  17. _AFXHTML_INLINE void CHtmlView::SetTheaterMode(BOOL bNewValue)
  18. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_TheaterMode((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  19. _AFXHTML_INLINE void CHtmlView::SetVisible(BOOL bNewValue)
  20. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_Visible((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  21. _AFXHTML_INLINE void CHtmlView::SetMenuBar(BOOL bNewValue)
  22. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_MenuBar((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  23. _AFXHTML_INLINE void CHtmlView::SetToolBar(int nNewValue)
  24. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_ToolBar(nNewValue); }
  25. _AFXHTML_INLINE void CHtmlView::SetOffline(BOOL bNewValue)
  26. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_Offline((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  27. _AFXHTML_INLINE void CHtmlView::SetSilent(BOOL bNewValue)
  28. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_Silent((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  29. _AFXHTML_INLINE void CHtmlView::GoBack()
  30. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->GoBack(); }
  31. _AFXHTML_INLINE void CHtmlView::GoForward()
  32. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->GoForward(); }
  33. _AFXHTML_INLINE void CHtmlView::GoHome()
  34. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->GoHome(); }
  35. _AFXHTML_INLINE void CHtmlView::GoSearch()
  36. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->GoSearch(); }
  37. _AFXHTML_INLINE void CHtmlView::Refresh()
  38. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->Refresh(); }
  39. _AFXHTML_INLINE void CHtmlView::Refresh2(int nLevel)
  40. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->Refresh2(COleVariant((long) nLevel, VT_I4)); }
  41. _AFXHTML_INLINE void CHtmlView::Stop()
  42. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->Stop(); }
  43. _AFXHTML_INLINE void CHtmlView::SetFullScreen(BOOL bNewValue)
  44. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_FullScreen((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  45. _AFXHTML_INLINE void CHtmlView::SetAddressBar(BOOL bNewValue)
  46. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_AddressBar((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  47. _AFXHTML_INLINE void CHtmlView::SetHeight(long nNewValue)
  48. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_Height(nNewValue); }
  49. _AFXHTML_INLINE void CHtmlView::PutProperty(LPCTSTR lpszPropertyName, long lValue)
  50. { ASSERT(m_pBrowserApp != NULL); ASSERT(m_pBrowserApp != NULL); PutProperty(lpszPropertyName, COleVariant(lValue, VT_UI4)); }
  51. _AFXHTML_INLINE void CHtmlView::PutProperty(LPCTSTR lpszPropertyName, short nValue)
  52. { ASSERT(m_pBrowserApp != NULL); ASSERT(m_pBrowserApp != NULL); PutProperty(lpszPropertyName, COleVariant(nValue, VT_UI2)); }
  53. _AFXHTML_INLINE void CHtmlView::PutProperty(LPCTSTR lpszPropertyName, LPCTSTR lpszValue)
  54. { ASSERT(m_pBrowserApp != NULL); ASSERT(m_pBrowserApp != NULL); PutProperty(lpszPropertyName, COleVariant(lpszValue, VT_BSTR)); }
  55. _AFXHTML_INLINE void CHtmlView::PutProperty(LPCTSTR lpszPropertyName, double dValue)
  56. { ASSERT(m_pBrowserApp != NULL); ASSERT(m_pBrowserApp != NULL); PutProperty(lpszPropertyName, COleVariant(dValue)); }
  57. _AFXHTML_INLINE void CHtmlView::SetTop(long nNewValue)
  58. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_Top(nNewValue); }
  59. _AFXHTML_INLINE void CHtmlView::SetLeft(long nNewValue)
  60. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_Left(nNewValue); }
  61. _AFXHTML_INLINE void CHtmlView::SetStatusBar(BOOL bNewValue)
  62. { ASSERT(m_pBrowserApp != NULL); m_pBrowserApp->put_StatusBar((short) (bNewValue ? AFX_OLE_TRUE : AFX_OLE_FALSE)); }
  63. #endif //_AFXHTML_INLINE
  64. /////////////////////////////////////////////////////////////////////////////