[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 |
|
---|
| 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);
|
---|
[113] | 38 | #if 0
|
---|
| 39 | VOID ChangeActiveWindow (HWND hwnd);
|
---|
| 40 | #endif
|
---|
[2] | 41 | private:
|
---|
| 42 | HWND hwndHelpInstance;
|
---|
| 43 | BOOL fHelpEnabled;
|
---|
| 44 | };
|
---|
| 45 |
|
---|
| 46 | inline BOOL Helper :: IsAvailable (VOID)
|
---|
| 47 | {
|
---|
| 48 | return (fHelpEnabled);
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | inline VOID Helper :: DisplayContents (VOID)
|
---|
| 52 | {
|
---|
| 53 | WinSendMsg (hwndHelpInstance, HM_HELP_CONTENTS, 0,0);
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | inline VOID Helper :: DisplayIndex (VOID)
|
---|
| 57 | {
|
---|
| 58 | WinSendMsg (hwndHelpInstance, HM_HELP_INDEX, 0,0);
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | inline VOID Helper :: DisplayKeysHelp (VOID)
|
---|
| 62 | {
|
---|
| 63 | WinSendMsg (hwndHelpInstance, HM_KEYS_HELP, 0,0);
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | inline VOID Helper :: DisplayGeneralHelp (VOID)
|
---|
| 67 | {
|
---|
| 68 | DisplayPanel( 1000 );
|
---|
| 69 | //WinSendMsg (hwndHelpInstance, HM_GENERAL_HELP, 0,0);
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | #endif
|
---|