| 1 |
/* |
| 2 |
* Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. |
| 3 |
* |
| 4 |
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
| 5 |
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK. |
| 6 |
* |
| 7 |
* Permission is hereby granted to use or copy this program |
| 8 |
* for any purpose, provided the above notices are retained on all copies. |
| 9 |
* Permission to modify the code and to distribute modified code is granted, |
| 10 |
* provided the above notices are retained, and a notice that the code was |
| 11 |
* modified is included with the above copyright notice. |
| 12 |
*/ |
| 13 |
|
| 14 |
#include "windows.h" |
| 15 |
#include "de_cmds.h" |
| 16 |
#include "de_win.h" |
| 17 |
|
| 18 |
ABOUTBOX DIALOG 19, 21, 163, 47 |
| 19 |
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU |
| 20 |
CAPTION "About Demonstration Text Editor" |
| 21 |
BEGIN |
| 22 |
LTEXT "Demonstration Text Editor", -1, 44, 8, 118, 8, WS_CHILD | WS_VISIBLE | WS_GROUP |
| 23 |
PUSHBUTTON "OK", IDOK, 118, 27, 24, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP |
| 24 |
END |
| 25 |
|
| 26 |
DE MENU |
| 27 |
BEGIN |
| 28 |
POPUP "&File" |
| 29 |
BEGIN |
| 30 |
MENUITEM "&Save\t^W", IDM_FILESAVE |
| 31 |
MENUITEM "E&xit\t^D", IDM_FILEEXIT |
| 32 |
END |
| 33 |
|
| 34 |
POPUP "&Edit" |
| 35 |
BEGIN |
| 36 |
MENUITEM "Page &Down\t^R^N", IDM_EDITPDOWN |
| 37 |
MENUITEM "Page &Up\t^R^P", IDM_EDITPUP |
| 38 |
MENUITEM "U&ndo\t^U", IDM_EDITUNDO |
| 39 |
MENUITEM "&Locate\t^L ... ^L", IDM_EDITLOCATE |
| 40 |
MENUITEM "D&own\t^N", IDM_EDITDOWN |
| 41 |
MENUITEM "U&p\t^P", IDM_EDITUP |
| 42 |
MENUITEM "Le&ft\t^B", IDM_EDITLEFT |
| 43 |
MENUITEM "&Right\t^F", IDM_EDITRIGHT |
| 44 |
MENUITEM "Delete &Backward\tBS", IDM_EDITBS |
| 45 |
MENUITEM "Delete F&orward\tDEL", IDM_EDITDEL |
| 46 |
MENUITEM "&Top\t^T", IDM_EDITTOP |
| 47 |
END |
| 48 |
|
| 49 |
POPUP "&Help" |
| 50 |
BEGIN |
| 51 |
MENUITEM "&Contents", IDM_HELPCONTENTS |
| 52 |
MENUITEM "&About...", IDM_HELPABOUT |
| 53 |
END |
| 54 |
|
| 55 |
MENUITEM "Page_&Down", IDM_EDITPDOWN |
| 56 |
MENUITEM "Page_&Up", IDM_EDITPUP |
| 57 |
END |
| 58 |
|
| 59 |
DE ACCELERATORS |
| 60 |
BEGIN |
| 61 |
"^R", IDM_EDITREPEAT |
| 62 |
"^N", IDM_EDITDOWN |
| 63 |
"^P", IDM_EDITUP |
| 64 |
"^L", IDM_EDITLOCATE |
| 65 |
"^B", IDM_EDITLEFT |
| 66 |
"^F", IDM_EDITRIGHT |
| 67 |
"^T", IDM_EDITTOP |
| 68 |
VK_DELETE, IDM_EDITDEL, VIRTKEY |
| 69 |
VK_BACK, IDM_EDITBS, VIRTKEY |
| 70 |
END |