Source code of Windows XP (NT5)
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.

38 lines
1.1 KiB

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1992 - 000
  5. *
  6. * File: webctrl.inl
  7. *
  8. * Contents: Inline functions for CAMCWebViewCtrl
  9. *
  10. * History: 15-Feb-2000 jeffro Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #pragma once
  14. /*+-------------------------------------------------------------------------*
  15. * CAMCWebViewCtrl::IsHistoryEnabled
  16. *
  17. * Returns true if the window has the WS_HISTORY style, false otherwise.
  18. *--------------------------------------------------------------------------*/
  19. inline bool CAMCWebViewCtrl::IsHistoryEnabled () const
  20. {
  21. return ((GetStyle() & WS_HISTORY) != 0);
  22. }
  23. /*+-------------------------------------------------------------------------*
  24. * CAMCWebViewCtrl::IsSinkEventsEnabled
  25. *
  26. * Returns true if the window has the WS_SINKEVENTS style, false otherwise.
  27. *--------------------------------------------------------------------------*/
  28. inline bool CAMCWebViewCtrl::IsSinkEventsEnabled () const
  29. {
  30. return ((GetStyle() & WS_SINKEVENTS) != 0);
  31. }