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.

27 lines
983 B

  1. //--------------------------------------------------------------------------
  2. // HelpUtils.cpp: implementation of the HelpUtils class.
  3. //
  4. // (c) Copyright 1999, Mission Critical Software, Inc. All Rights Reserved.
  5. //
  6. // Proprietary and confidential to Mission Critical Software, Inc.
  7. //--------------------------------------------------------------------------
  8. #include "stdafx.h"
  9. #include <McString.h>
  10. #include <GuiUtils.h>
  11. #include "HelpUtils.h"
  12. #include <HtmlHelp.h>
  13. #include "HtmlHelpUtil.h"
  14. //--------------------------------------------------------------------------
  15. //
  16. //--------------------------------------------------------------------------
  17. HRESULT
  18. HelpUtils::ShowHelpTopic(HWND hWnd, UINT nHelpTopicID)
  19. {
  20. McString::String mcstrHelpPathName = GuiUtils::GetHelpPathName();
  21. HWND h = ::HtmlHelp(hWnd, mcstrHelpPathName.getWide(), HH_HELP_CONTEXT, nHelpTopicID);
  22. if (!IsInWorkArea(h))
  23. PlaceInWorkArea(h);
  24. return S_OK;
  25. }