source: trunk/helper.h@ 2

Last change on this file since 2 was 2, checked in by Gregg Young, 8 years ago

Gotcha 1.78 source from Hobbes

  • Property svn:eol-style set to native
File size: 1.7 KB
RevLine 
[2]1/***
2 This file belongs to the Gotcha! distribution.
3 Copyright (C) 1998-2002 Thorsten Thielen <thth@c2226.de>
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
25class Helper
26{
27public:
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
39private:
40 HWND hwndHelpInstance;
41 BOOL fHelpEnabled;
42};
43
44inline BOOL Helper :: IsAvailable (VOID)
45{
46 return (fHelpEnabled);
47}
48
49inline VOID Helper :: DisplayContents (VOID)
50{
51 WinSendMsg (hwndHelpInstance, HM_HELP_CONTENTS, 0,0);
52}
53
54inline VOID Helper :: DisplayIndex (VOID)
55{
56 WinSendMsg (hwndHelpInstance, HM_HELP_INDEX, 0,0);
57}
58
59inline VOID Helper :: DisplayKeysHelp (VOID)
60{
61 WinSendMsg (hwndHelpInstance, HM_KEYS_HELP, 0,0);
62}
63
64inline VOID Helper :: DisplayGeneralHelp (VOID)
65{
66 DisplayPanel( 1000 );
67 //WinSendMsg (hwndHelpInstance, HM_GENERAL_HELP, 0,0);
68}
69
70#endif
Note: See TracBrowser for help on using the repository browser.