1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
---|
2 | /* ***** BEGIN LICENSE BLOCK *****
|
---|
3 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
---|
4 | *
|
---|
5 | * The contents of this file are subject to the Mozilla Public License Version
|
---|
6 | * 1.1 (the "License"); you may not use this file except in compliance with
|
---|
7 | * the License. You may obtain a copy of the License at
|
---|
8 | * http://www.mozilla.org/MPL/
|
---|
9 | *
|
---|
10 | * Software distributed under the License is distributed on an "AS IS" basis,
|
---|
11 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
---|
12 | * for the specific language governing rights and limitations under the
|
---|
13 | * License.
|
---|
14 | *
|
---|
15 | * The Original Code is the Netscape Portable Runtime (NSPR).
|
---|
16 | *
|
---|
17 | * The Initial Developer of the Original Code is
|
---|
18 | * Netscape Communications Corporation.
|
---|
19 | * Portions created by the Initial Developer are Copyright (C) 1998-2000
|
---|
20 | * the Initial Developer. All Rights Reserved.
|
---|
21 | *
|
---|
22 | * Contributor(s):
|
---|
23 | *
|
---|
24 | * Alternatively, the contents of this file may be used under the terms of
|
---|
25 | * either the GNU General Public License Version 2 or later (the "GPL"), or
|
---|
26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
---|
27 | * in which case the provisions of the GPL or the LGPL are applicable instead
|
---|
28 | * of those above. If you wish to allow use of your version of this file only
|
---|
29 | * under the terms of either the GPL or the LGPL, and not to allow others to
|
---|
30 | * use your version of this file under the terms of the MPL, indicate your
|
---|
31 | * decision by deleting the provisions above and replace them with the notice
|
---|
32 | * and other provisions required by the GPL or the LGPL. If you do not delete
|
---|
33 | * the provisions above, a recipient may use your version of this file under
|
---|
34 | * the terms of any one of the MPL, the GPL or the LGPL.
|
---|
35 | *
|
---|
36 | * ***** END LICENSE BLOCK ***** */
|
---|
37 |
|
---|
38 | /*---------------------------
|
---|
39 | POPPAD.RC resource script
|
---|
40 | ---------------------------*/
|
---|
41 |
|
---|
42 | #include <windows.h>
|
---|
43 | #include "poppad.h"
|
---|
44 |
|
---|
45 | PopPad ICON "poppad.ico"
|
---|
46 |
|
---|
47 | PopPad MENU
|
---|
48 | {
|
---|
49 | POPUP "&File"
|
---|
50 | {
|
---|
51 | MENUITEM "&New", IDM_NEW
|
---|
52 | MENUITEM "&Open...", IDM_OPEN
|
---|
53 | MENUITEM "&Save", IDM_SAVE
|
---|
54 | MENUITEM "Save &As...", IDM_SAVEAS
|
---|
55 | MENUITEM SEPARATOR
|
---|
56 | MENUITEM "&Print...", IDM_PRINT
|
---|
57 | MENUITEM SEPARATOR
|
---|
58 | MENUITEM "E&xit", IDM_EXIT
|
---|
59 | }
|
---|
60 | POPUP "&Edit"
|
---|
61 | {
|
---|
62 | MENUITEM "&Undo\tCtrl+Z", IDM_UNDO
|
---|
63 | MENUITEM SEPARATOR
|
---|
64 | MENUITEM "Cu&t\tCtrl+X", IDM_CUT
|
---|
65 | MENUITEM "&Copy\tCtrl+C", IDM_COPY
|
---|
66 | MENUITEM "&Paste\tCtrl+V", IDM_PASTE
|
---|
67 | MENUITEM "De&lete\tDel", IDM_DEL
|
---|
68 | MENUITEM SEPARATOR
|
---|
69 | MENUITEM "&Select All", IDM_SELALL
|
---|
70 | }
|
---|
71 | POPUP "&Search"
|
---|
72 | {
|
---|
73 | MENUITEM "&Find...", IDM_FIND
|
---|
74 | MENUITEM "Find &Next\tF3", IDM_NEXT
|
---|
75 | MENUITEM "&Replace...", IDM_REPLACE
|
---|
76 | }
|
---|
77 | POPUP "&Character"
|
---|
78 | {
|
---|
79 | MENUITEM "&Font...", IDM_FONT
|
---|
80 | }
|
---|
81 | POPUP "&Help"
|
---|
82 | {
|
---|
83 | MENUITEM "&Help", IDM_HELP
|
---|
84 | MENUITEM "&About PopPad...", IDM_ABOUT
|
---|
85 | }
|
---|
86 | }
|
---|
87 |
|
---|
88 | PopPad ACCELERATORS
|
---|
89 | {
|
---|
90 | "^Z", IDM_UNDO
|
---|
91 | VK_BACK, IDM_UNDO, VIRTKEY, ALT
|
---|
92 | "^X", IDM_CUT
|
---|
93 | VK_DELETE, IDM_CUT, VIRTKEY, SHIFT
|
---|
94 | "^C", IDM_COPY
|
---|
95 | VK_INSERT, IDM_COPY, VIRTKEY, CONTROL
|
---|
96 | "^V", IDM_PASTE
|
---|
97 | VK_INSERT, IDM_PASTE, VIRTKEY, SHIFT
|
---|
98 | VK_DELETE, IDM_DEL, VIRTKEY
|
---|
99 | VK_F3, IDM_NEXT, VIRTKEY
|
---|
100 | VK_F1, IDM_HELP, VIRTKEY
|
---|
101 | }
|
---|
102 |
|
---|
103 | AboutBox DIALOG 20, 20, 160, 80
|
---|
104 | STYLE WS_POPUP | WS_DLGFRAME
|
---|
105 | {
|
---|
106 | CTEXT "PopPad" -1, 0, 12, 160, 8
|
---|
107 | ICON "PopPad" -1, 8, 8, 0, 0
|
---|
108 | CTEXT "Popup Editor for Microsoft Windows" -1, 0, 36, 160, 8
|
---|
109 | CTEXT "Copyright (c) Charles Petzold, 1992" -1, 0, 48, 160, 8
|
---|
110 | DEFPUSHBUTTON "OK" IDOK, 64, 60, 32, 14, WS_GROUP
|
---|
111 | }
|
---|
112 |
|
---|
113 | PrintDlgBox DIALOG 20, 20, 100, 76
|
---|
114 | STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
---|
115 | CAPTION "PopPad"
|
---|
116 | {
|
---|
117 | CTEXT "Sending", -1, 0, 10, 100, 8
|
---|
118 | CTEXT "", IDD_FNAME, 0, 20, 100, 8
|
---|
119 | CTEXT "to print spooler.", -1, 0, 30, 100, 8
|
---|
120 | DEFPUSHBUTTON "Cancel", IDCANCEL, 34, 50, 32, 14, WS_GROUP
|
---|
121 | }
|
---|