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.

41 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: cslistvw.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. #include <pch.cpp>
  11. #pragma hdrstop
  12. #include <commctrl.h>
  13. #include <assert.h>
  14. #include "cslistvw.h"
  15. BOOL OnDialogHelp(LPHELPINFO pHelpInfo, LPCTSTR szHelpFile, const DWORD rgzHelpIDs[])
  16. {
  17. if (rgzHelpIDs == NULL || szHelpFile == NULL)
  18. return TRUE;
  19. if (pHelpInfo != NULL && pHelpInfo->iContextType == HELPINFO_WINDOW)
  20. {
  21. // Display context help for a control
  22. WinHelp((HWND)pHelpInfo->hItemHandle, szHelpFile,
  23. HELP_WM_HELP, (ULONG_PTR)(LPVOID)rgzHelpIDs);
  24. }
  25. return TRUE;
  26. }
  27. BOOL OnDialogContextHelp(HWND hWnd, LPCTSTR szHelpFile, const DWORD rgzHelpIDs[])
  28. {
  29. if (rgzHelpIDs == NULL || szHelpFile == NULL)
  30. return TRUE;
  31. assert(IsWindow(hWnd));
  32. WinHelp(hWnd, szHelpFile, HELP_CONTEXTMENU, (ULONG_PTR)(LPVOID)rgzHelpIDs);
  33. return TRUE;
  34. }