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