home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / gotch175.zip / src / helper.h < prev    next >
C/C++ Source or Header  |  2002-05-18  |  2KB  |  71 lines

  1. /***
  2.  This file belongs to the Gotcha! distribution.
  3.  Copyright (C) 1998-2002 Thorsten Thielen <thth@gmx.net>
  4.  
  5.  This program is free software; you can redistribute it and/or modify
  6.  it under the terms of the GNU General Public License as published by
  7.  the Free Software Foundation; either version 2 of the License, or
  8.  (at your option) any later version.
  9.  
  10.  This program is distributed in the hope that it will be useful,
  11.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  GNU General Public License for more details.
  14.  
  15.  You should have received a copy of the GNU General Public License
  16.  along with this program; if not, write to the Free Software
  17.  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  ***/
  19.  
  20. #ifndef _HELPER_H_
  21. #define _HELPER_H_
  22.  
  23. #include "gotcha.h"
  24.  
  25. class Helper
  26. {
  27. public:
  28.     Helper (HWND hwnd);
  29.     ~Helper (VOID);
  30.  
  31.     VOID   DisplayPanel (SHORT idPanel);
  32.     BOOL   IsAvailable (VOID);
  33.  
  34.     VOID   DisplayContents (VOID);
  35.     VOID   DisplayIndex (VOID);
  36.     VOID   DisplayKeysHelp (VOID);
  37.     VOID   DisplayGeneralHelp (VOID);
  38.  
  39. private:
  40.     HWND   hwndHelpInstance;
  41.     BOOL   fHelpEnabled;
  42. };
  43.  
  44. inline BOOL Helper :: IsAvailable (VOID)
  45. {
  46.     return (fHelpEnabled);
  47. }
  48.  
  49. inline VOID Helper :: DisplayContents (VOID)
  50. {
  51.     WinSendMsg (hwndHelpInstance, HM_HELP_CONTENTS, 0,0);
  52. }
  53.  
  54. inline VOID Helper :: DisplayIndex (VOID)
  55. {
  56.     WinSendMsg (hwndHelpInstance, HM_HELP_INDEX, 0,0);
  57. }
  58.  
  59. inline VOID Helper :: DisplayKeysHelp (VOID)
  60. {
  61.     WinSendMsg (hwndHelpInstance, HM_KEYS_HELP, 0,0);
  62. }
  63.  
  64. inline VOID Helper :: DisplayGeneralHelp (VOID)
  65. {
  66.     DisplayPanel( 1000 );
  67.     //WinSendMsg (hwndHelpInstance, HM_GENERAL_HELP, 0,0);
  68. }
  69.  
  70. #endif
  71.