Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
5.3 KiB

  1. /*************************************************************************
  2. **
  3. ** OLE 2.0 Sample Code
  4. **
  5. ** outline.rc
  6. **
  7. ** Resource file for outline.exe
  8. **
  9. ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
  10. **
  11. *************************************************************************/
  12. #include "windows.h"
  13. #include "outlrc.h"
  14. SelCur CURSOR selcross.cur
  15. OutlineMenu MENU
  16. BEGIN
  17. POPUP "&File"
  18. BEGIN
  19. MENUITEM "&New", IDM_F_NEW
  20. MENUITEM "&Open...\t Ctrl+F12", IDM_F_OPEN
  21. MENUITEM "&Save\t Shift+F12", IDM_F_SAVE
  22. MENUITEM "Save &As...\t F12", IDM_F_SAVEAS
  23. MENUITEM SEPARATOR
  24. MENUITEM "&Print...\t Ctrl+Shift+F12", IDM_F_PRINT
  25. MENUITEM "Printer Se&tup...", IDM_F_PRINTERSETUP
  26. MENUITEM SEPARATOR
  27. MENUITEM "E&xit\t Alt+F4", IDM_F_EXIT
  28. END
  29. POPUP "&Edit"
  30. BEGIN
  31. MENUITEM "&Undo", IDM_E_UNDO
  32. MENUITEM SEPARATOR
  33. MENUITEM "Cu&t\t Ctrl+X", IDM_E_CUT
  34. MENUITEM "&Copy\t Ctrl+C", IDM_E_COPY
  35. MENUITEM "&Paste\t Ctrl+V", IDM_E_PASTE
  36. MENUITEM "Cl&ear\t Del", IDM_E_CLEAR
  37. MENUITEM SEPARATOR
  38. MENUITEM "Select A&ll\t Ctrl+A", IDM_E_SELECTALL
  39. END
  40. POPUP "O&utline"
  41. BEGIN
  42. POPUP "&Zoom"
  43. BEGIN
  44. MENUITEM "&400%", IDM_V_ZOOM_400
  45. MENUITEM "&300%", IDM_V_ZOOM_300
  46. MENUITEM "&200%", IDM_V_ZOOM_200
  47. MENUITEM "&100%", IDM_V_ZOOM_100
  48. MENUITEM "&75%", IDM_V_ZOOM_75
  49. MENUITEM "&50%", IDM_V_ZOOM_50
  50. MENUITEM "&25%", IDM_V_ZOOM_25
  51. END
  52. POPUP "&Left and Right margins"
  53. BEGIN
  54. MENUITEM "&nil", IDM_V_SETMARGIN_0
  55. MENUITEM "&1 cm", IDM_V_SETMARGIN_1
  56. MENUITEM "&2 cm", IDM_V_SETMARGIN_2
  57. MENUITEM "&3 cm", IDM_V_SETMARGIN_3
  58. MENUITEM "&4 cm", IDM_V_SETMARGIN_4
  59. END
  60. POPUP "Add &Top Line"
  61. BEGIN
  62. MENUITEM "&1 cm", IDM_V_ADDTOP_1
  63. MENUITEM "&2 cm", IDM_V_ADDTOP_2
  64. MENUITEM "&3 cm", IDM_V_ADDTOP_3
  65. MENUITEM "&4 cm", IDM_V_ADDTOP_4
  66. END
  67. END
  68. POPUP "&Line"
  69. BEGIN
  70. MENUITEM "&Add Line\t Enter", IDM_L_ADDLINE
  71. MENUITEM "E&dit Line\t Alt+Enter", IDM_L_EDITLINE
  72. MENUITEM SEPARATOR
  73. MENUITEM "&Indent Line\t Tab", IDM_L_INDENTLINE
  74. MENUITEM "U&nindent Line\t Shift+Tab", IDM_L_UNINDENTLINE
  75. MENUITEM SEPARATOR
  76. MENUITEM "&Set Line Height...", IDM_L_SETLINEHEIGHT
  77. END
  78. POPUP "&Name"
  79. BEGIN
  80. MENUITEM "&Define Name...", IDM_N_DEFINENAME
  81. MENUITEM "&Goto Name...", IDM_N_GOTONAME
  82. END
  83. POPUP "&Options"
  84. BEGIN
  85. POPUP "&Button Bar Display"
  86. BEGIN
  87. MENUITEM "At &Top", IDM_O_BB_TOP
  88. MENUITEM "At &Bottom", IDM_O_BB_BOTTOM
  89. MENUITEM "&Popup", IDM_O_BB_POPUP
  90. MENUITEM "&Hide", IDM_O_BB_HIDE
  91. END
  92. POPUP "&Formula Bar Display"
  93. BEGIN
  94. MENUITEM "At &Top", IDM_O_FB_TOP
  95. MENUITEM "At &Bottom", IDM_O_FB_BOTTOM
  96. MENUITEM "&Popup", IDM_O_FB_POPUP
  97. END
  98. POPUP "&Row and Column Heading"
  99. BEGIN
  100. MENUITEM "&Show", IDM_O_HEAD_SHOW
  101. MENUITEM "&Hide", IDM_O_HEAD_HIDE
  102. END
  103. END
  104. POPUP "&Help"
  105. BEGIN
  106. MENUITEM "&About...", IDM_H_ABOUT
  107. END
  108. END
  109. OutlineAccel ACCELERATORS
  110. BEGIN
  111. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  112. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  113. VK_F12, IDM_F_SAVEAS, VIRTKEY
  114. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  115. "x", IDM_E_CUT, VIRTKEY, CONTROL
  116. "c", IDM_E_COPY, VIRTKEY, CONTROL
  117. "v", IDM_E_PASTE, VIRTKEY, CONTROL
  118. VK_DELETE, IDM_E_CLEAR, VIRTKEY
  119. VK_RETURN, IDM_L_ADDLINE, VIRTKEY
  120. VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT
  121. VK_TAB, IDM_L_INDENTLINE, VIRTKEY
  122. VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT
  123. "a", IDM_E_SELECTALL, VIRTKEY, CONTROL
  124. ; old conventions for editing
  125. VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL
  126. VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT
  127. VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT
  128. VK_F2, IDM_F2, VIRTKEY
  129. END
  130. ; Same as OutlineAccel but without Delete
  131. ; used when edit control of Formula Bar in focus
  132. ;
  133. OutlineAccelFocusEdit ACCELERATORS
  134. BEGIN
  135. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  136. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  137. VK_F12, IDM_F_SAVEAS, VIRTKEY
  138. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  139. "x", IDM_E_CUT, VIRTKEY, CONTROL
  140. "c", IDM_E_COPY, VIRTKEY, CONTROL
  141. "v", IDM_E_PASTE, VIRTKEY, CONTROL
  142. VK_RETURN, IDM_L_ADDLINE, VIRTKEY
  143. VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT
  144. VK_TAB, IDM_L_INDENTLINE, VIRTKEY
  145. VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT
  146. "a", IDM_E_SELECTALL, VIRTKEY, CONTROL
  147. VK_ESCAPE, IDM_FB_CANCEL, VIRTKEY
  148. ; old conventions for editing
  149. VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL
  150. VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT
  151. VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT
  152. END
  153. OutlineIcon ICON outline.ico
  154. Image72 BITMAP image72.bmp
  155. Image96 BITMAP image96.bmp
  156. Image120 BITMAP image120.bmp
  157. LogoBitmap BITMAP ole2.bmp
  158. #include "DIALOGS.DLG"