annotate src/console-msw.h @ 406:b8cc9ab3f761 r21-2-33

Import from CVS: tag r21-2-33
author cvs
date Mon, 13 Aug 2007 11:17:09 +0200
parents 2f8bb876ab1d
children 501cfd01ee6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
1 /* Define mswindows-specific console, device, and frame object for XEmacs.
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
2 Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
3 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
4
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
5 This file is part of XEmacs.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
6
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
10 later version.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
11
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
15 for more details.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
16
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
21
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
22 /* Synched up with: Not in FSF. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
23
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
24
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
25 /* Authorship:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
26
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
27 Ultimately based on FSF, then later on JWZ work for Lemacs.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
28 Rewritten over time by Ben Wing and Chuck Thompson.
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
29 Rewritten for mswindows by Jonathan Harris, November 1997 for 21.0.
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
30 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
31
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
32 #ifndef INCLUDED_console_msw_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
33 #define INCLUDED_console_msw_h_
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
34
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
35 #include "console.h"
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 278
diff changeset
36 #include <windows.h>
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 278
diff changeset
37 #include <ddeml.h> /* DDE management library */
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
38 #if !defined(__CYGWIN32__) && !defined(__MINGW32__) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
39 || CYGWIN_VERSION_DLL_MAJOR > 20
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 278
diff changeset
40 #include <shellapi.h> /* FileManager/Explorer drag and drop */
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 278
diff changeset
41 #include <commctrl.h>
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
42 #endif
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
43
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
44 #ifdef HAVE_XPM
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
45 #include <X11/xpm.h>
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
46 #endif
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
47
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
48 /* The name of the main window class */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
49 #define XEMACS_CLASS "XEmacs"
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
50
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
51 #define XEMACS_CONTROL_CLASS "XEmacsControl"
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
52
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
53 /*
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
54 * Console
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
55 */
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
56
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
57 DECLARE_CONSOLE_TYPE (mswindows);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
58
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
59 struct mswindows_console
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
60 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
61 int infd, outfd;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
62 };
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
63
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
64 DECLARE_CONSOLE_TYPE (msprinter);
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
65
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
66 /*
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
67 * Device
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
68 */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
69
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
70 #define MSW_FONTSIZE (LF_FACESIZE*4+12)
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
71
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
72 struct mswindows_device
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
73 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
74 int logpixelsx, logpixelsy;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
75 int planes, cells;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
76 int horzres, vertres; /* Size in pixels */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
77 int horzsize, vertsize; /* Size in mm */
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 251
diff changeset
78 int bitspixel;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
79 Lisp_Object fontlist; /* List of strings, device fonts */
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
80 HDC hcdc; /* Compatible DC */
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
81 };
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
82
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
83 #define DEVICE_MSWINDOWS_DATA(d) DEVICE_TYPE_DATA (d, mswindows)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
84 #define DEVICE_MSWINDOWS_LOGPIXELSX(d) (DEVICE_MSWINDOWS_DATA (d)->logpixelsx)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
85 #define DEVICE_MSWINDOWS_LOGPIXELSY(d) (DEVICE_MSWINDOWS_DATA (d)->logpixelsy)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
86 #define DEVICE_MSWINDOWS_PLANES(d) (DEVICE_MSWINDOWS_DATA (d)->planes)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
87 #define DEVICE_MSWINDOWS_CELLS(d) (DEVICE_MSWINDOWS_DATA (d)->cells)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
88 #define DEVICE_MSWINDOWS_HORZRES(d) (DEVICE_MSWINDOWS_DATA (d)->horzres)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
89 #define DEVICE_MSWINDOWS_VERTRES(d) (DEVICE_MSWINDOWS_DATA (d)->vertres)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
90 #define DEVICE_MSWINDOWS_HORZSIZE(d) (DEVICE_MSWINDOWS_DATA (d)->horzsize)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
91 #define DEVICE_MSWINDOWS_VERTSIZE(d) (DEVICE_MSWINDOWS_DATA (d)->vertsize)
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 251
diff changeset
92 #define DEVICE_MSWINDOWS_BITSPIXEL(d) (DEVICE_MSWINDOWS_DATA (d)->bitspixel)
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
93 #define DEVICE_MSWINDOWS_FONTLIST(d) (DEVICE_MSWINDOWS_DATA (d)->fontlist)
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
94 #define DEVICE_MSWINDOWS_HCDC(d) (DEVICE_MSWINDOWS_DATA (d)->hcdc)
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
95
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
96 struct msprinter_device
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
97 {
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
98 HDC hdc, hcdc; /* Printer and the comp. DCs */
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
99 HANDLE hprinter;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
100 Lisp_Object fontlist;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
101 char* name;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
102 DEVMODE *devmode, *devmode_mirror;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
103 size_t devmode_size;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
104 };
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
105
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
106 #define DEVICE_MSPRINTER_DATA(d) DEVICE_TYPE_DATA (d, msprinter)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
107 #define DEVICE_MSPRINTER_HDC(d) (DEVICE_MSPRINTER_DATA (d)->hdc)
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
108 #define DEVICE_MSPRINTER_HCDC(d) (DEVICE_MSPRINTER_DATA (d)->hcdc)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
109 #define DEVICE_MSPRINTER_HPRINTER(d) (DEVICE_MSPRINTER_DATA (d)->hprinter)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
110 #define DEVICE_MSPRINTER_FONTLIST(d) (DEVICE_MSPRINTER_DATA (d)->fontlist)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
111 #define DEVICE_MSPRINTER_NAME(d) (DEVICE_MSPRINTER_DATA (d)->name)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
112 #define DEVICE_MSPRINTER_DEVMODE(d) (DEVICE_MSPRINTER_DATA (d)->devmode)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
113 #define DEVICE_MSPRINTER_DEVMODE_MIRROR(d) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
114 (DEVICE_MSPRINTER_DATA (d)->devmode_mirror)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
115 #define DEVICE_MSPRINTER_DEVMODE_SIZE(d) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
116 (DEVICE_MSPRINTER_DATA (d)->devmode_size)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
117
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
118 #define CONSOLE_TYPESYM_MSPRINTER_P(typesym) EQ (typesym, Qmsprinter)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
119 #define DEVICE_MSPRINTER_P(dev) CONSOLE_TYPESYM_MSPRINTER_P (DEVICE_TYPE (dev))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
120 #define CHECK_MSPRINTER_DEVICE(z) CHECK_DEVICE_TYPE (z, msprinter)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
121 #define CONCHECK_MSPRINTER_DEVICE(z) CONCHECK_DEVICE_TYPE (z, msprinter)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
122
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
123 /* Printer functions in device-msw.c */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
124 DEVMODE* msprinter_get_devmode_copy (struct device *d);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
125 void msprinter_apply_devmode (struct device *d, DEVMODE *devmode);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
126
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
127 /* Printer functions in frame-msw.c */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
128 void msprinter_start_page (struct frame *f);
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
129
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
130 /* Common checks */
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
131
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
132 #define DEVICE_MSGDI_P(dev) (DEVICE_MSWINDOWS_P(dev) || DEVICE_MSPRINTER_P(dev))
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
133 #define CHECK_MSGDI_DEVICE(d) \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
134 do { \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
135 CHECK_DEVICE (d); \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
136 if (!(DEVICEP (d) && DEVICE_MSGDI_P(XDEVICE(d)))) \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
137 dead_wrong_type_argument \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
138 (list3 (Qor, Qmswindows, Qmsprinter), d); \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
139 } while (0)
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
140 #define CONCHECK_MSGDI_DEVICE(d) \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
141 do { \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
142 CHECK_DEVICE (d); \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
143 if (!(DEVICEP (d) && DEVICE_MSGDI_P(XDEVICE(d)))) \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
144 wrong_type_argument \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
145 (list3 (Qor, Qmswindows, Qmsprinter), d); \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
146 } while (0)
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
147
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
148 /*
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
149 * Frame
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
150 */
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
151 typedef struct
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
152 {
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
153 int left;
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
154 int top;
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
155 int width;
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
156 int height;
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
157 } XEMACS_RECT_WH;
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
158
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
159 struct mswindows_frame
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
160 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
161 /* win32 window handle */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
162 HWND hwnd;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
163
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
164 /* DC for this win32 window */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
165 HDC hdc;
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
166
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
167 /* Time of last click event, for button 2 emul */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
168 DWORD last_click_time;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
169
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
170 /* Coordinates of last click event, screen-relative */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
171 POINTS last_click_point;
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
172 #ifdef HAVE_TOOLBARS
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
173 /* Toolbar hash table. See toolbar-msw.c */
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
174 Lisp_Object toolbar_hash_table;
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
175 unsigned int toolbar_checksum[4];
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
176 #endif
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
177
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
178 /* Menu hash table. See menubar-msw.c */
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
179 Lisp_Object menu_hash_table;
233
52952cbfc5b5 Import from CVS: tag r20-5b15
cvs
parents: 231
diff changeset
180
52952cbfc5b5 Import from CVS: tag r20-5b15
cvs
parents: 231
diff changeset
181 /* Menu checksum. See menubar-msw.c */
52952cbfc5b5 Import from CVS: tag r20-5b15
cvs
parents: 231
diff changeset
182 unsigned int menu_checksum;
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 223
diff changeset
183
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
184 /* Widget glyphs attached to this frame. See glyphs-msw.c */
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
185 Lisp_Object widget_hash_table1, widget_hash_table2, widget_hash_table3;
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
186
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
187 /* Frame title hash value. See frame-msw.c */
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
188 unsigned int title_checksum;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
189
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
190 /* Real character width and height of the frame.
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
191 FRAME_{HEIGHT,WIDTH} do not work for pixel geometry! */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
192 int charheight, charwidth;
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
193
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
194 /* Misc flags */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
195 int button2_need_lbutton : 1;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
196 int button2_need_rbutton : 1;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
197 int button2_is_down : 1;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
198 int ignore_next_lbutton_up : 1;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
199 int ignore_next_rbutton_up : 1;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 213
diff changeset
200 int sizing : 1;
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
201 int paint_pending : 1; /* Whether a WM_PAINT magic event has been queued */
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
202
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
203 /* Geometry, in characters, as specified by proplist during frame
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
204 creation. Memebers are set to -1 for unspecified */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
205 XEMACS_RECT_WH* target_rect;
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
206 };
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
207
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
208 #define FRAME_MSWINDOWS_DATA(f) FRAME_TYPE_DATA (f, mswindows)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
209
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
210 #define FRAME_MSWINDOWS_HANDLE(f) (FRAME_MSWINDOWS_DATA (f)->hwnd)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
211 #define FRAME_MSWINDOWS_DC(f) (FRAME_MSWINDOWS_DATA (f)->hdc)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
212 #define FRAME_MSWINDOWS_MENU_HASH_TABLE(f) (FRAME_MSWINDOWS_DATA (f)->menu_hash_table)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
213 #define FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE(f) \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 373
diff changeset
214 (FRAME_MSWINDOWS_DATA (f)->toolbar_hash_table)
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
215 #define FRAME_MSWINDOWS_WIDGET_HASH_TABLE1(f) \
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
216 (FRAME_MSWINDOWS_DATA (f)->widget_hash_table1)
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
217 #define FRAME_MSWINDOWS_WIDGET_HASH_TABLE2(f) \
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
218 (FRAME_MSWINDOWS_DATA (f)->widget_hash_table2)
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
219 #define FRAME_MSWINDOWS_WIDGET_HASH_TABLE3(f) \
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
220 (FRAME_MSWINDOWS_DATA (f)->widget_hash_table3)
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
221 #define FRAME_MSWINDOWS_TOOLBAR_CHECKSUM(f,pos) \
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
222 (FRAME_MSWINDOWS_DATA (f)->toolbar_checksum[pos])
233
52952cbfc5b5 Import from CVS: tag r20-5b15
cvs
parents: 231
diff changeset
223 #define FRAME_MSWINDOWS_MENU_CHECKSUM(f) (FRAME_MSWINDOWS_DATA (f)->menu_checksum)
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
224 #define FRAME_MSWINDOWS_TITLE_CHECKSUM(f) (FRAME_MSWINDOWS_DATA (f)->title_checksum)
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
225 #define FRAME_MSWINDOWS_CHARWIDTH(f) (FRAME_MSWINDOWS_DATA (f)->charwidth)
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
226 #define FRAME_MSWINDOWS_CHARHEIGHT(f) (FRAME_MSWINDOWS_DATA (f)->charheight)
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
227 #define FRAME_MSWINDOWS_TARGET_RECT(f) (FRAME_MSWINDOWS_DATA (f)->target_rect)
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
228
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
229 /* Frame check and validation macros */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
230 #define FRAME_MSWINDOWS_P(frm) CONSOLE_TYPESYM_MSWINDOWS_P (FRAME_TYPE (frm))
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
231 #define CHECK_MSWINDOWS_FRAME(z) CHECK_FRAME_TYPE (z, mswindows)
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
232 #define CONCHECK_MSWINDOWS_FRAME(z) CONCHECK_FRAME_TYPE (z, mswindows)
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
233
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
234 /* win32 window LONG indices */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
235 #define XWL_FRAMEOBJ 0
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
236 #define XWL_COUNT 1 /* Number of LONGs that we use */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
237 #define MSWINDOWS_WINDOW_EXTRA_BYTES (XWL_COUNT*4)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
238
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
239 /*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
240 * Printer frame, aka printer job
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
241 */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
242
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
243 struct msprinter_frame
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
244 {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
245 int left_margin, top_margin, /* All in twips */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
246 right_margin, bottom_margin;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
247 int charheight, charwidth; /* As per proplist or -1 if not gven */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
248 Lisp_Object orientation, duplex; /* nil for printer's default */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
249 int job_started : 1;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
250 int page_started : 1;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
251 };
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
252
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
253 #define FRAME_MSPRINTER_DATA(f) FRAME_TYPE_DATA (f, msprinter)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
254 #define FRAME_MSPRINTER_LEFT_MARGIN(f) (FRAME_MSPRINTER_DATA (f)->left_margin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
255 #define FRAME_MSPRINTER_RIGHT_MARGIN(f) (FRAME_MSPRINTER_DATA (f)->top_margin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
256 #define FRAME_MSPRINTER_TOP_MARGIN(f) (FRAME_MSPRINTER_DATA (f)->right_margin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
257 #define FRAME_MSPRINTER_BOTTOM_MARGIN(f) (FRAME_MSPRINTER_DATA (f)->bottom_margin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
258 #define FRAME_MSPRINTER_JOB_STARTED(f) (FRAME_MSPRINTER_DATA (f)->job_started)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
259 #define FRAME_MSPRINTER_PAGE_STARTED(f) (FRAME_MSPRINTER_DATA (f)->page_started)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
260 #define FRAME_MSPRINTER_ORIENTATION(f) (FRAME_MSPRINTER_DATA (f)->orientation)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
261 #define FRAME_MSPRINTER_DUPLEX(f) (FRAME_MSPRINTER_DATA (f)->duplex)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
262 #define FRAME_MSPRINTER_CHARWIDTH(f) (FRAME_MSPRINTER_DATA (f)->charheight)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
263 #define FRAME_MSPRINTER_CHARHEIGHT(f) (FRAME_MSPRINTER_DATA (f)->charwidth)
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
264
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
265 /*
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
266 * Events
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
267 */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
268
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
269 /* win32 messages / magic event types */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
270 #define EVENT_MSWINDOWS_MAGIC_TYPE(e) \
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
271 ((e)->event.magic.underlying_mswindows_event)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
272 #define XM_BUMPQUEUE (WM_USER + 101)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
273 #define XM_MAPFRAME (WM_USER + 102)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
274 #define XM_UNMAPFRAME (WM_USER + 103)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
275
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
276
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
277 /*
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
278 * Random globals
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
279 */
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
280
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
281 /* win32 "Windows" procedure */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
282 LRESULT WINAPI mswindows_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam,
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
283 LPARAM lParam);
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
284 LRESULT WINAPI mswindows_control_wnd_proc (HWND hwnd,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
285 UINT msg, WPARAM wParam,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
286 LPARAM lParam);
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
287
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
288 void mswindows_redraw_exposed_area (struct frame *f, int x, int y,
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
289 int width, int height);
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
290 void mswindows_size_frame_internal (struct frame* f, XEMACS_RECT_WH* dest);
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
291 void mswindows_enqueue_magic_event (HWND hwnd, UINT msg);
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
292
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
293 /* win32 DDE management library */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
294 #define MSWINDOWS_DDE_ITEM_OPEN "Open"
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
295 extern DWORD mswindows_dde_mlid;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
296 extern HSZ mswindows_dde_service;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
297 extern HSZ mswindows_dde_topic_system;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
298 extern HSZ mswindows_dde_item_open;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
299 HDDEDATA CALLBACK mswindows_dde_callback (UINT uType, UINT uFmt, HCONV hconv,
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
300 HSZ hszTopic, HSZ hszItem,
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
301 HDDEDATA hdata,
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
302 DWORD dwData1, DWORD dwData2);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
303
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
304 void mswindows_enqueue_dispatch_event (Lisp_Object event);
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
305 void mswindows_enqueue_misc_user_event (Lisp_Object channel,
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
306 Lisp_Object function,
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
307 Lisp_Object object);
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
308 Lisp_Object mswindows_cancel_dispatch_event (Lisp_Event* event);
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 233
diff changeset
309 Lisp_Object mswindows_pump_outstanding_events (void);
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
310 Lisp_Object mswindows_protect_modal_loop (Lisp_Object (*bfun)
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
311 (Lisp_Object barg),
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
312 Lisp_Object barg);
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
313 void mswindows_unmodalize_signal_maybe (void);
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
314
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
315 COLORREF mswindows_string_to_color (const char *name);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
316 USID emacs_mswindows_create_stream_pair (void* inhandle, void* outhandle,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
317 Lisp_Object* instream,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
318 Lisp_Object* outstream,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
319 int flags);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
320 USID emacs_mswindows_delete_stream_pair (Lisp_Object instream,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
321 Lisp_Object outstream);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
322
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
323 #ifdef HAVE_WIN32_PROCESSES
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
324 HANDLE get_nt_process_handle (Lisp_Process *p);
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
325 #endif
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
326
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
327 extern Lisp_Object Vmswindows_frame_being_created;
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
328 extern Lisp_Object mswindows_frame_being_created;
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
329
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
330 void msw_get_workspace_coords (RECT *rc);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
331
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
332 HWND msw_get_console_hwnd (void);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
333 void msw_hide_console (void);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
334 void msw_show_console (void);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
335 int msw_output_console_string (CONST Extbyte *str, Extcount len);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
336
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
337 Lisp_Object mswindows_enumerate_fonts (HDC hdc);
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
338
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
339 int msw_char_is_accelerator (struct frame *f, Emchar ch);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
340 Bytecount msw_translate_menu_or_dialog_item (Bufbyte *item, Bytecount len,
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
341 Bytecount maxlen, Emchar *accel,
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
342 Lisp_Object error_name);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
343
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
344 #ifdef HAVE_TOOLBARS
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
345 Lisp_Object mswindows_get_toolbar_button_text (struct frame* f,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
346 int command_id);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
347 Lisp_Object mswindows_handle_toolbar_wm_command (struct frame* f,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
348 HWND ctrl, WORD id);
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
349 #endif
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
350 Lisp_Object mswindows_handle_gui_wm_command (struct frame* f,
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
351 HWND ctrl, LPARAM id);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
352
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 398
diff changeset
353 int msw_windows9x_p (void);
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
354
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
355 #endif /* INCLUDED_console_msw_h_ */