| 1 | /* $Id: conprop.h,v 1.1 1999-05-24 20:19:43 ktk Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | *
|
|---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 6 | *
|
|---|
| 7 | */
|
|---|
| 8 | /*
|
|---|
| 9 | * Win32 Console Subsystem for OS/2
|
|---|
| 10 | *
|
|---|
| 11 | * 1998/03/06 PH Patrick Haller (haller@zebra.fh-weingarten.de)
|
|---|
| 12 | *
|
|---|
| 13 | * @(#) ConProp.Cpp 1.0.0 1998/03/06 PH start
|
|---|
| 14 | */
|
|---|
| 15 |
|
|---|
| 16 | #ifndef _CONSOLEPROPERTY_H_
|
|---|
| 17 | #define _CONSOLEPROPERTY_H_
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | /*****************************************************************************
|
|---|
| 21 | * Remark *
|
|---|
| 22 | *****************************************************************************
|
|---|
| 23 |
|
|---|
| 24 | */
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | /*****************************************************************************
|
|---|
| 28 | * Resources *
|
|---|
| 29 | *****************************************************************************/
|
|---|
| 30 |
|
|---|
| 31 | #include "consolerc.h"
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | /*****************************************************************************
|
|---|
| 35 | * Includes *
|
|---|
| 36 | *****************************************************************************/
|
|---|
| 37 |
|
|---|
| 38 | //#include <win32type.h>
|
|---|
| 39 | #include "handlemanager.h"
|
|---|
| 40 | #include "console2.h"
|
|---|
| 41 | #include <console.h>
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | /*****************************************************************************
|
|---|
| 45 | * Defines & Macros *
|
|---|
| 46 | *****************************************************************************/
|
|---|
| 47 |
|
|---|
| 48 | /* this is sent after properties have been read properly from disk */
|
|---|
| 49 | #define UM_PROPERTY_APPLY WM_USER + 0x10
|
|---|
| 50 | #define UM_PROPERTY_UNDO WM_USER + 0x11
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | /*****************************************************************************
|
|---|
| 54 | * Structures *
|
|---|
| 55 | *****************************************************************************/
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | typedef struct _Options
|
|---|
| 59 | {
|
|---|
| 60 | HMODULE hmodResources; /* module handle for PM resources */
|
|---|
| 61 |
|
|---|
| 62 | BOOL fTerminateAutomatically; /* wait for window termination or not */
|
|---|
| 63 | BOOL fSpeakerEnabled; /* whether we process BEL 0x07 or not */
|
|---|
| 64 | ULONG ulSpeakerDuration; /* duration and frequency for speaker beep */
|
|---|
| 65 | ULONG ulSpeakerFrequency;
|
|---|
| 66 | ULONG ulUpdateLimit; /* when exceeding this line counter, automatic */
|
|---|
| 67 | /* screen update is performed */
|
|---|
| 68 |
|
|---|
| 69 | BOOL fSetWindowPosition; /* TRUE if window has to be positioned */
|
|---|
| 70 |
|
|---|
| 71 | COORD coordDefaultPosition;
|
|---|
| 72 | COORD coordDefaultSize;
|
|---|
| 73 |
|
|---|
| 74 | BOOL fQuickInsert; /* like NT's quick insert mode */
|
|---|
| 75 | BOOL fInsertMode; /* insert mode */
|
|---|
| 76 | BOOL fMouseActions; /* like Warp 4's "mouse action" mode */
|
|---|
| 77 | BOOL fToolbarActive; /* windows95-like toolbar on / off */
|
|---|
| 78 |
|
|---|
| 79 | ULONG ulTabSize; /* tabulator size */
|
|---|
| 80 |
|
|---|
| 81 | UCHAR ucDefaultAttribute; /* the default text attribute */
|
|---|
| 82 |
|
|---|
| 83 | UCHAR ucCursorDivisor; /* cursor timer divisor for blinking */
|
|---|
| 84 |
|
|---|
| 85 | ULONG ulConsoleThreadPriorityClass; /* priority settings for message */
|
|---|
| 86 | ULONG ulConsoleThreadPriorityDelta; /* thread */
|
|---|
| 87 | ULONG ulAppThreadPriorityClass; /* priority settings for application */
|
|---|
| 88 | ULONG ulAppThreadPriorityDelta; /* thread */
|
|---|
| 89 |
|
|---|
| 90 | } CONSOLEOPTIONS, *PCONSOLEOPTIONS;
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | /*****************************************************************************
|
|---|
| 94 | * Prototypes *
|
|---|
| 95 | *****************************************************************************/
|
|---|
| 96 |
|
|---|
| 97 | #ifdef __cplusplus
|
|---|
| 98 | extern "C" {
|
|---|
| 99 | #endif
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 | MRESULT EXPENTRY ConsolePropertyDlgProc(HWND hwnd,
|
|---|
| 103 | ULONG ulMessage,
|
|---|
| 104 | MPARAM mp1,
|
|---|
| 105 | MPARAM mp2);
|
|---|
| 106 |
|
|---|
| 107 |
|
|---|
| 108 | /* read console properties from EAs */
|
|---|
| 109 | APIRET EXPENTRY ConsolePropertyRead(PCONSOLEOPTIONS pConsoleOptions);
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 | /* write console properties to EAs */
|
|---|
| 113 | APIRET EXPENTRY ConsolePropertyWrite(PCONSOLEOPTIONS pConsoleOptions);
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | #ifdef __cplusplus
|
|---|
| 117 | }
|
|---|
| 118 | #endif
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | #endif /* _CONSOLEPROPERTY_H_ */
|
|---|