105b261ecSmrg/*
205b261ecSmrg *Copyright (C) 2002-2004 Harold L Hunt II All Rights Reserved.
36747b715Smrg *Copyright (C) 2008 Yaakov Selkowitz All Rights Reserved
405b261ecSmrg *
505b261ecSmrg *Permission is hereby granted, free of charge, to any person obtaining
605b261ecSmrg * a copy of this software and associated documentation files (the
705b261ecSmrg *"Software"), to deal in the Software without restriction, including
805b261ecSmrg *without limitation the rights to use, copy, modify, merge, publish,
905b261ecSmrg *distribute, sublicense, and/or sell copies of the Software, and to
1005b261ecSmrg *permit persons to whom the Software is furnished to do so, subject to
1105b261ecSmrg *the following conditions:
1205b261ecSmrg *
1305b261ecSmrg *The above copyright notice and this permission notice shall be
1405b261ecSmrg *included in all copies or substantial portions of the Software.
1505b261ecSmrg *
1605b261ecSmrg *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1705b261ecSmrg *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1805b261ecSmrg *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1905b261ecSmrg *NONINFRINGEMENT. IN NO EVENT SHALL HAROLD L HUNT II BE LIABLE FOR
2005b261ecSmrg *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2105b261ecSmrg *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2205b261ecSmrg *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2305b261ecSmrg *
246747b715Smrg *Except as contained in this notice, the names of the authors
2505b261ecSmrg *shall not be used in advertising or otherwise to promote the sale, use
2605b261ecSmrg *or other dealings in this Software without prior written authorization
276747b715Smrg *from the authors.
2805b261ecSmrg *
296747b715Smrg * Authors:	Harold L Hunt II, Yaakov Selkowitz
3005b261ecSmrg */
3105b261ecSmrg
326747b715Smrg#include <windows.h>
3305b261ecSmrg#include "winresource.h"
346747b715Smrg#include "xwin-config.h"
356747b715Smrg#include "version-config.h"
3605b261ecSmrg
3705b261ecSmrg/*
3805b261ecSmrg * Dialogs
3905b261ecSmrg */
4005b261ecSmrg
4105b261ecSmrg/* About */
426747b715SmrgABOUT_BOX DIALOGEX 32, 32, 260, 105
4305b261ecSmrgSTYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_TABSTOP  | DS_CENTERMOUSE
446747b715SmrgCAPTION "About " XVENDORNAMESHORT
456747b715SmrgFONT 8, "MS Shell Dlg 2"
4605b261ecSmrgBEGIN
476747b715Smrg  CONTROL				IDI_XWIN, IDC_STATIC, "Static", SS_ICON, 8, 8, 32, 32
486747b715Smrg  LTEXT			XVENDORNAMESHORT " X Server ", IDC_STATIC, 36, 8, 220, 8
496747b715Smrg  LTEXT			VENDOR_MAN_VERSION, IDC_STATIC, 36, 18, 220, 8
506747b715Smrg  LTEXT			BUILDERSTRING, IDC_STATIC, 36, 28, 220, 8
516747b715Smrg  LTEXT			"This software is licensed under the terms of the MIT/X11 License.", IDC_STATIC, 36, 48, 220, 20
526747b715Smrg  CONTROL               __VENDORDWEBSUPPORT__, ID_ABOUT_WEBSITE, "Button",
5335c4bbdfSmrg                        BS_OWNERDRAW | WS_TABSTOP, 36, 68, 220, 8
546747b715Smrg  DEFPUSHBUTTON		"&OK", IDOK, 105, 85, 50, 15
5505b261ecSmrgEND
5605b261ecSmrg
5705b261ecSmrg
5805b261ecSmrg/* Depth change */
5905b261ecSmrg
606747b715SmrgDEPTH_CHANGE_BOX DIALOGEX 32, 32, 180, 100
6105b261ecSmrgSTYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_CENTERMOUSE
626747b715SmrgFONT 8, "MS Shell Dlg 2"
636747b715SmrgCAPTION XVENDORNAMESHORT
6405b261ecSmrgBEGIN
6505b261ecSmrg  DEFPUSHBUTTON		"Dismiss", IDOK, 66, 80, 50, 14
666747b715Smrg  CTEXT			XVENDORNAMESHORT, IDC_STATIC, 40, 12, 100, 8
6705b261ecSmrg  CTEXT			"Disruptive screen configuration change.", IDC_STATIC, 7, 40, 166, 8
686747b715Smrg  CTEXT			"Restore previous resolution to use " XVENDORNAMESHORT ".", IDC_STATIC, 7, 52, 166, 8
6905b261ecSmrgEND
7005b261ecSmrg
7105b261ecSmrg
7205b261ecSmrg/* Exit */
7305b261ecSmrg
746747b715SmrgEXIT_DIALOG DIALOGEX 32, 32, 180, 78
7505b261ecSmrgSTYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_TABSTOP | DS_CENTERMOUSE
766747b715SmrgFONT 8, "MS Shell Dlg 2"
776747b715SmrgCAPTION "Exit " XVENDORNAMESHORT "?"
7805b261ecSmrgBEGIN
7905b261ecSmrg  PUSHBUTTON "E&xit", IDOK, 55, 56, 30, 14
8005b261ecSmrg  DEFPUSHBUTTON "&Cancel", IDCANCEL, 95, 56, 30, 14
816747b715Smrg  CTEXT "E&xiting will close all screens running on this display.", IDC_STATIC, 7, 12, 166, 8
8205b261ecSmrg  CTEXT "No information about connected clients available.", IDC_CLIENTS_CONNECTED, 7, 24, 166, 8
8305b261ecSmrg  CTEXT "Proceed with shutdown of this display/server?", IDC_STATIC, 7, 36, 166, 8
8405b261ecSmrgEND
8505b261ecSmrg
8605b261ecSmrg
8705b261ecSmrg/*
8805b261ecSmrg * Menus
8905b261ecSmrg */
9005b261ecSmrg
916747b715SmrgIDM_TRAYICON_MENU MENU
9205b261ecSmrgBEGIN
9305b261ecSmrg	POPUP "TRAYICON_MENU"
9405b261ecSmrg	BEGIN
9505b261ecSmrg		MENUITEM "&Hide Root Window", ID_APP_HIDE_ROOT
9635c4bbdfSmrg		MENUITEM "Clipboard may use &PRIMARY selection", ID_APP_MONITOR_PRIMARY
9705b261ecSmrg		MENUITEM "&About...", ID_APP_ABOUT
9805b261ecSmrg		MENUITEM SEPARATOR
996747b715Smrg		MENUITEM "E&xit...", ID_APP_EXIT
10005b261ecSmrg	END
10105b261ecSmrgEND
10205b261ecSmrg
10305b261ecSmrg
10405b261ecSmrg/*
10505b261ecSmrg * Icons
10605b261ecSmrg */
10705b261ecSmrg
1086747b715SmrgIDI_XWIN		ICON	"X.ico"
1096747b715SmrgCREATEPROCESS_MANIFEST_RESOURCE_ID	RT_MANIFEST	"XWin.exe.manifest"
110