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.

210 lines
6.7 KiB

  1. /*************************************************************************
  2. **
  3. ** OLE 2.0 Container Sample Code
  4. **
  5. ** icntrotl.rc
  6. **
  7. ** Resource file for icntrotl.exe
  8. **
  9. ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
  10. **
  11. *************************************************************************/
  12. #include "windows.h"
  13. #include "outlrc.h"
  14. #include "cntrrc.h"
  15. SelCur CURSOR selcross.cur
  16. DragMoveCur CURSOR dragmove.cur
  17. #if defined( IF_SPECIAL_DD_CURSORS_NEEDED )
  18. DragNoneCur CURSOR dragnone.cur
  19. DragCopyCur CURSOR dragcopy.cur
  20. DragLinkCur CURSOR draglink.cur
  21. #endif // IF_SPECIAL_DD_CURSORS_NEEDED
  22. CntrOutlMenu MENU
  23. BEGIN
  24. POPUP "&File"
  25. BEGIN
  26. MENUITEM "&New", IDM_F_NEW
  27. MENUITEM "&Open...\t Ctrl+F12", IDM_F_OPEN
  28. MENUITEM "&Save\t Shift+F12", IDM_F_SAVE
  29. MENUITEM "Save &As...\t F12", IDM_F_SAVEAS
  30. MENUITEM SEPARATOR
  31. MENUITEM "&Print...\t Ctrl+Shift+F12", IDM_F_PRINT
  32. MENUITEM "Printer Se&tup...", IDM_F_PRINTERSETUP
  33. MENUITEM SEPARATOR
  34. MENUITEM "E&xit\t Alt+F4", IDM_F_EXIT
  35. END
  36. POPUP "&Edit"
  37. BEGIN
  38. MENUITEM "&Undo", IDM_E_UNDO
  39. MENUITEM SEPARATOR
  40. MENUITEM "Cu&t\t Ctrl+X", IDM_E_CUT
  41. MENUITEM "&Copy\t Ctrl+C", IDM_E_COPY
  42. MENUITEM "&Paste\t Ctrl+V", IDM_E_PASTE
  43. MENUITEM "Paste &Special...", IDM_E_PASTESPECIAL
  44. MENUITEM "Paste &Link", IDM_E_PASTELINK
  45. MENUITEM "Cl&ear\t Del", IDM_E_CLEAR
  46. MENUITEM SEPARATOR
  47. MENUITEM "&Insert Object...", IDM_E_INSERTOBJECT
  48. MENUITEM "Li&nks...", IDM_E_EDITLINKS
  49. MENUITEM "&Object", IDM_E_OBJECTVERBMIN
  50. MENUITEM SEPARATOR
  51. MENUITEM "Select &All\t Ctrl+A", IDM_E_SELECTALL
  52. END
  53. POPUP "O&utline"
  54. BEGIN
  55. POPUP "&Zoom"
  56. BEGIN
  57. MENUITEM "&100%\t Ctrl+1", IDM_V_ZOOM_100
  58. MENUITEM "&75%\t Ctrl+2", IDM_V_ZOOM_75
  59. MENUITEM "&50%\t Ctrl+3", IDM_V_ZOOM_50
  60. MENUITEM "&25%\t Ctrl+4", IDM_V_ZOOM_25
  61. END
  62. POPUP "&Left and Right margins"
  63. BEGIN
  64. MENUITEM "&nil", IDM_V_SETMARGIN_0
  65. MENUITEM "&1 cm", IDM_V_SETMARGIN_1
  66. MENUITEM "&2 cm", IDM_V_SETMARGIN_2
  67. MENUITEM "&3 cm", IDM_V_SETMARGIN_3
  68. MENUITEM "&4 cm", IDM_V_SETMARGIN_4
  69. END
  70. POPUP "Add &Top Line"
  71. BEGIN
  72. MENUITEM "&1 cm", IDM_V_ADDTOP_1
  73. MENUITEM "&2 cm", IDM_V_ADDTOP_2
  74. MENUITEM "&3 cm", IDM_V_ADDTOP_3
  75. MENUITEM "&4 cm", IDM_V_ADDTOP_4
  76. END
  77. END
  78. POPUP "&Line"
  79. BEGIN
  80. MENUITEM "&Add Line\t Enter", IDM_L_ADDLINE
  81. MENUITEM "E&dit Line\t Alt+Enter", IDM_L_EDITLINE
  82. MENUITEM SEPARATOR
  83. MENUITEM "&Indent Line\t Tab", IDM_L_INDENTLINE
  84. MENUITEM "U&nindent Line\t Shift+Tab", IDM_L_UNINDENTLINE
  85. MENUITEM SEPARATOR
  86. MENUITEM "&Set Line Height...", IDM_L_SETLINEHEIGHT
  87. END
  88. POPUP "&Name"
  89. BEGIN
  90. MENUITEM "&Define Name...", IDM_N_DEFINENAME
  91. MENUITEM "&Goto Name...", IDM_N_GOTONAME
  92. END
  93. POPUP "&Options"
  94. BEGIN
  95. POPUP "&Button Bar Display"
  96. BEGIN
  97. MENUITEM "At &Top", IDM_O_BB_TOP
  98. MENUITEM "At &Bottom", IDM_O_BB_BOTTOM
  99. MENUITEM "&Popup", IDM_O_BB_POPUP
  100. MENUITEM "&Hide", IDM_O_BB_HIDE
  101. END
  102. POPUP "&Formula Bar Display"
  103. BEGIN
  104. MENUITEM "At &Top", IDM_O_FB_TOP
  105. MENUITEM "At &Bottom", IDM_O_FB_BOTTOM
  106. MENUITEM "&Popup", IDM_O_FB_POPUP
  107. END
  108. POPUP "&Row and Column Heading"
  109. BEGIN
  110. MENUITEM "&Show", IDM_O_HEAD_SHOW
  111. MENUITEM "&Hide", IDM_O_HEAD_HIDE
  112. END
  113. MENUITEM "&Show Object", IDM_O_SHOWOBJECT
  114. END
  115. POPUP "DbgI&Cntr"
  116. BEGIN
  117. MENUITEM "&Debug Level...", IDM_D_DEBUGLEVEL
  118. MENUITEM "Register Message &Filter", IDM_D_INSTALLMSGFILTER
  119. MENUITEM "&Reject Incoming Messages", IDM_D_REJECTINCOMING
  120. MENUITEM "&Inside-out Activation", IDM_D_INSIDEOUT
  121. END
  122. POPUP "&Help"
  123. BEGIN
  124. MENUITEM "&About...", IDM_H_ABOUT
  125. END
  126. END
  127. CntrOutlAccel ACCELERATORS
  128. BEGIN
  129. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  130. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  131. VK_F12, IDM_F_SAVEAS, VIRTKEY
  132. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  133. "x", IDM_E_CUT, VIRTKEY, CONTROL
  134. "c", IDM_E_COPY, VIRTKEY, CONTROL
  135. "v", IDM_E_PASTE, VIRTKEY, CONTROL
  136. VK_DELETE, IDM_E_CLEAR, VIRTKEY
  137. VK_RETURN, IDM_L_ADDLINE, VIRTKEY
  138. VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT
  139. VK_TAB, IDM_L_INDENTLINE, VIRTKEY
  140. VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT
  141. "a", IDM_E_SELECTALL, VIRTKEY, CONTROL
  142. ; old conventions for editing
  143. VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL
  144. VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT
  145. VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT
  146. VK_F2, IDM_F2, VIRTKEY
  147. VK_ESCAPE, IDM_ESCAPE, VIRTKEY
  148. "1", IDM_V_ZOOM_100, VIRTKEY, CONTROL
  149. "2", IDM_V_ZOOM_75, VIRTKEY, CONTROL
  150. "3", IDM_V_ZOOM_50, VIRTKEY, CONTROL
  151. "4", IDM_V_ZOOM_25, VIRTKEY, CONTROL
  152. END
  153. ; Same as CntrOutlAccel but without Delete and Backspace
  154. ; used when edit control of Formula Bar in focus
  155. ;
  156. CntrOutlAccelFocusEdit ACCELERATORS
  157. BEGIN
  158. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  159. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  160. VK_F12, IDM_F_SAVEAS, VIRTKEY
  161. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  162. "x", IDM_E_CUT, VIRTKEY, CONTROL
  163. "c", IDM_E_COPY, VIRTKEY, CONTROL
  164. "v", IDM_E_PASTE, VIRTKEY, CONTROL
  165. VK_RETURN, IDM_L_ADDLINE, VIRTKEY
  166. VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT
  167. VK_TAB, IDM_L_INDENTLINE, VIRTKEY
  168. VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT
  169. "a", IDM_E_SELECTALL, VIRTKEY, CONTROL
  170. VK_ESCAPE, IDM_ESCAPE, VIRTKEY
  171. ; old conventions for editing
  172. VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL
  173. VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT
  174. VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT
  175. END
  176. InPlaceCntrOutlAccel ACCELERATORS
  177. BEGIN
  178. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  179. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  180. VK_F12, IDM_F_SAVEAS, VIRTKEY
  181. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  182. VK_ESCAPE, IDM_ESCAPE, VIRTKEY
  183. "1", IDM_V_ZOOM_100, VIRTKEY, CONTROL
  184. "2", IDM_V_ZOOM_75, VIRTKEY, CONTROL
  185. "3", IDM_V_ZOOM_50, VIRTKEY, CONTROL
  186. "4", IDM_V_ZOOM_25, VIRTKEY, CONTROL
  187. END
  188. CntrOutlIcon ICON icntrotl.ico
  189. Image72 BITMAP image72.bmp
  190. Image96 BITMAP image96.bmp
  191. Image120 BITMAP image120.bmp
  192. LogoBitmap BITMAP ole2.bmp
  193. #include "DIALOGS.DLG"