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.

24 lines
868 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. //--------------------------------------------------------------------------
  14. //
  15. //--------------------------------------------------------------------------
  16. HRESULT
  17. HelpUtils::ShowHelpTopic(HWND hWnd, UINT nHelpTopicID)
  18. {
  19. McString::String mcstrHelpPathName = GuiUtils::GetHelpPathName();
  20. ::HtmlHelp(hWnd, mcstrHelpPathName.getWide(), HH_HELP_CONTEXT, nHelpTopicID);
  21. return S_OK;
  22. }