1706f2543Smrg/*
2706f2543Smrg *Copyright (C) 2002-2004 Harold L Hunt II All Rights Reserved.
3706f2543Smrg *Copyright (C) 2008 Yaakov Selkowitz All Rights Reserved
4706f2543Smrg *
5706f2543Smrg *Permission is hereby granted, free of charge, to any person obtaining
6706f2543Smrg * a copy of this software and associated documentation files (the
7706f2543Smrg *"Software"), to deal in the Software without restriction, including
8706f2543Smrg *without limitation the rights to use, copy, modify, merge, publish,
9706f2543Smrg *distribute, sublicense, and/or sell copies of the Software, and to
10706f2543Smrg *permit persons to whom the Software is furnished to do so, subject to
11706f2543Smrg *the following conditions:
12706f2543Smrg *
13706f2543Smrg *The above copyright notice and this permission notice shall be
14706f2543Smrg *included in all copies or substantial portions of the Software.
15706f2543Smrg *
16706f2543Smrg *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17706f2543Smrg *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18706f2543Smrg *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19706f2543Smrg *NONINFRINGEMENT. IN NO EVENT SHALL HAROLD L HUNT II BE LIABLE FOR
20706f2543Smrg *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21706f2543Smrg *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22706f2543Smrg *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23706f2543Smrg *
24706f2543Smrg *Except as contained in this notice, the names of the authors
25706f2543Smrg *shall not be used in advertising or otherwise to promote the sale, use
26706f2543Smrg *or other dealings in this Software without prior written authorization
27706f2543Smrg *from the authors.
28706f2543Smrg *
29706f2543Smrg * Authors:	Harold L Hunt II, Yaakov Selkowitz
30706f2543Smrg */
31706f2543Smrg
32706f2543Smrg#include <windows.h>
33706f2543Smrg#include "winresource.h"
34706f2543Smrg#include "xwin-config.h"
35706f2543Smrg#include "version-config.h"
36706f2543Smrg
37706f2543Smrg/*
38706f2543Smrg * Dialogs
39706f2543Smrg */
40706f2543Smrg
41706f2543Smrg/* About */
42706f2543SmrgABOUT_BOX DIALOGEX 32, 32, 260, 105
43706f2543SmrgSTYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_TABSTOP  | DS_CENTERMOUSE
44706f2543SmrgCAPTION "About " XVENDORNAMESHORT
45706f2543SmrgFONT 8, "MS Shell Dlg 2"
46706f2543SmrgBEGIN
47706f2543Smrg  CONTROL				IDI_XWIN, IDC_STATIC, "Static", SS_ICON, 8, 8, 32, 32
48706f2543Smrg  LTEXT			XVENDORNAMESHORT " X Server ", IDC_STATIC, 36, 8, 220, 8
49706f2543Smrg  LTEXT			VENDOR_MAN_VERSION, IDC_STATIC, 36, 18, 220, 8
50706f2543Smrg  LTEXT			BUILDERSTRING, IDC_STATIC, 36, 28, 220, 8
51706f2543Smrg  LTEXT			"This software is licensed under the terms of the MIT/X11 License.", IDC_STATIC, 36, 48, 220, 20
52706f2543Smrg  CONTROL               __VENDORDWEBSUPPORT__, ID_ABOUT_WEBSITE, "Button",
53706f2543Smrg                        BS_OWNERDRAW | WS_TABSTOP, 36, 68, 68, 8
54706f2543Smrg  DEFPUSHBUTTON		"&OK", IDOK, 105, 85, 50, 15
55706f2543SmrgEND
56706f2543Smrg
57706f2543Smrg
58706f2543Smrg/* Depth change */
59706f2543Smrg
60706f2543SmrgDEPTH_CHANGE_BOX DIALOGEX 32, 32, 180, 100
61706f2543SmrgSTYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_CENTERMOUSE
62706f2543SmrgFONT 8, "MS Shell Dlg 2"
63706f2543SmrgCAPTION XVENDORNAMESHORT
64706f2543SmrgBEGIN
65706f2543Smrg  DEFPUSHBUTTON		"Dismiss", IDOK, 66, 80, 50, 14
66706f2543Smrg  CTEXT			XVENDORNAMESHORT, IDC_STATIC, 40, 12, 100, 8
67706f2543Smrg  CTEXT			"Disruptive screen configuration change.", IDC_STATIC, 7, 40, 166, 8
68706f2543Smrg  CTEXT			"Restore previous resolution to use " XVENDORNAMESHORT ".", IDC_STATIC, 7, 52, 166, 8
69706f2543SmrgEND
70706f2543Smrg
71706f2543Smrg
72706f2543Smrg/* Exit */
73706f2543Smrg
74706f2543SmrgEXIT_DIALOG DIALOGEX 32, 32, 180, 78
75706f2543SmrgSTYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_TABSTOP | DS_CENTERMOUSE
76706f2543SmrgFONT 8, "MS Shell Dlg 2"
77706f2543SmrgCAPTION "Exit " XVENDORNAMESHORT "?"
78706f2543SmrgBEGIN
79706f2543Smrg  PUSHBUTTON "E&xit", IDOK, 55, 56, 30, 14
80706f2543Smrg  DEFPUSHBUTTON "&Cancel", IDCANCEL, 95, 56, 30, 14
81706f2543Smrg  CTEXT "E&xiting will close all screens running on this display.", IDC_STATIC, 7, 12, 166, 8
82706f2543Smrg  CTEXT "No information about connected clients available.", IDC_CLIENTS_CONNECTED, 7, 24, 166, 8
83706f2543Smrg  CTEXT "Proceed with shutdown of this display/server?", IDC_STATIC, 7, 36, 166, 8
84706f2543SmrgEND
85706f2543Smrg
86706f2543Smrg
87706f2543Smrg/*
88706f2543Smrg * Menus
89706f2543Smrg */
90706f2543Smrg
91706f2543SmrgIDM_TRAYICON_MENU MENU
92706f2543SmrgBEGIN
93706f2543Smrg	POPUP "TRAYICON_MENU"
94706f2543Smrg	BEGIN
95706f2543Smrg		MENUITEM "&Hide Root Window", ID_APP_HIDE_ROOT
96706f2543Smrg		MENUITEM "&About...", ID_APP_ABOUT
97706f2543Smrg		MENUITEM SEPARATOR
98706f2543Smrg		MENUITEM "E&xit...", ID_APP_EXIT
99706f2543Smrg	END
100706f2543SmrgEND
101706f2543Smrg
102706f2543Smrg
103706f2543Smrg/*
104706f2543Smrg * Icons
105706f2543Smrg */
106706f2543Smrg
107706f2543SmrgIDI_XWIN		ICON	"X.ico"
108706f2543SmrgCREATEPROCESS_MANIFEST_RESOURCE_ID	RT_MANIFEST	"XWin.exe.manifest"
109