source: trunk/helper.h@ 113

Last change on this file since 113 was 113, checked in by Gregg Young, 4 years ago

Minor code updates

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
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#if 0
39 VOID ChangeActiveWindow (HWND hwnd);
40#endif
41private:
42 HWND hwndHelpInstance;
43 BOOL fHelpEnabled;
44};
45
46inline BOOL Helper :: IsAvailable (VOID)
47{
48 return (fHelpEnabled);
49}
50
51inline VOID Helper :: DisplayContents (VOID)
52{
53 WinSendMsg (hwndHelpInstance, HM_HELP_CONTENTS, 0,0);
54}
55
56inline VOID Helper :: DisplayIndex (VOID)
57{
58 WinSendMsg (hwndHelpInstance, HM_HELP_INDEX, 0,0);
59}
60
61inline VOID Helper :: DisplayKeysHelp (VOID)
62{
63 WinSendMsg (hwndHelpInstance, HM_KEYS_HELP, 0,0);
64}
65
66inline VOID Helper :: DisplayGeneralHelp (VOID)
67{
68 DisplayPanel( 1000 );
69 //WinSendMsg (hwndHelpInstance, HM_GENERAL_HELP, 0,0);
70}
71
72#endif
Note: See TracBrowser for help on using the repository browser.