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.

179 lines
5.5 KiB

  1. /*************************************************************************
  2. **
  3. ** OLE 2.0 Container Sample Code
  4. **
  5. ** cntroutl.rc
  6. **
  7. ** Resource file for cntroutl.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%", IDM_V_ZOOM_100
  58. MENUITEM "&75%", IDM_V_ZOOM_75
  59. MENUITEM "&50%", IDM_V_ZOOM_50
  60. MENUITEM "&25%", 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 "Dbg&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. END
  121. POPUP "&Help"
  122. BEGIN
  123. MENUITEM "&About...", IDM_H_ABOUT
  124. END
  125. END
  126. CntrOutlAccel ACCELERATORS
  127. BEGIN
  128. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  129. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  130. VK_F12, IDM_F_SAVEAS, VIRTKEY
  131. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  132. "x", IDM_E_CUT, VIRTKEY, CONTROL
  133. "c", IDM_E_COPY, VIRTKEY, CONTROL
  134. "v", IDM_E_PASTE, VIRTKEY, CONTROL
  135. VK_DELETE, IDM_E_CLEAR, VIRTKEY
  136. VK_RETURN, IDM_L_ADDLINE, VIRTKEY
  137. VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT
  138. VK_TAB, IDM_L_INDENTLINE, VIRTKEY
  139. VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT
  140. "a", IDM_E_SELECTALL, VIRTKEY, CONTROL
  141. ; old conventions for editing
  142. VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL
  143. VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT
  144. VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT
  145. VK_F2, IDM_F2, VIRTKEY
  146. END
  147. ; Same as CntrOutlAccel but without Delete and Backspace
  148. ; used when edit control of Formula Bar in focus
  149. ;
  150. CntrOutlAccelFocusEdit ACCELERATORS
  151. BEGIN
  152. VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL
  153. VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT
  154. VK_F12, IDM_F_SAVEAS, VIRTKEY
  155. VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT
  156. VK_RETURN, IDM_L_ADDLINE, VIRTKEY
  157. VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT
  158. VK_ESCAPE, IDM_FB_CANCEL, VIRTKEY
  159. END
  160. CntrOutlIcon ICON cntroutl.ico
  161. Image72 BITMAP image72.bmp
  162. Image96 BITMAP image96.bmp
  163. Image120 BITMAP image120.bmp
  164. LogoBitmap BITMAP ole2.bmp
  165. #include "DIALOGS.DLG"