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