home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / video / vidcap / help.h < prev    next >
Encoding:
Text File  |  1997-10-05  |  1.6 KB  |  49 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (C) 1992 - 1997 Microsoft Corporation.  All Rights Reserved.
  9.  *
  10.  **************************************************************************/
  11. /****************************************************************************
  12.  *
  13.  *   help.h: Help system include file
  14.  *
  15.  *   Vidcap32 Source code
  16.  *
  17.  ***************************************************************************/
  18.  
  19.  
  20. // call DialogBoxParam, but ensuring correct help processing:
  21. // assumes that each Dialog Box ID is a context number in the help file.
  22. // calls MakeProcInstance as necessary. Uses instance data passed to
  23. // HelpInit().
  24. int
  25. DoDialog(
  26.    HWND hwndParent,     // parent window
  27.    int DialogID,        // dialog resource id
  28.    DLGPROC fnDialog,    // dialog proc
  29.    long lParam          // passed as lparam in WM_INITDIALOG
  30. );
  31.  
  32.  
  33. // set the help context id for a dialog displayed other than by DoDialog
  34. // (eg by GetOpenFileName). Returns the old help context that you must
  35. // restore by a further call to this function
  36. int SetCurrentHelpContext(int DialogID);
  37.  
  38.  
  39. // help init - initialise the support for the F1 key help
  40. BOOL HelpInit(HINSTANCE hinstance, LPSTR helpfilepath, HWND hwndApp);
  41.  
  42.  
  43. // shutdown the help system
  44. void HelpShutdown(void);
  45.  
  46. // start help at the contents page
  47. void HelpContents(void);
  48.  
  49.