/************************************************************************* ** ** OLE 2.0 Sample Code ** ** outline.rc ** ** Resource file for outline.exe ** ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved ** *************************************************************************/ #include "windows.h" #include "outlrc.h" SelCur CURSOR selcross.cur OutlineMenu MENU BEGIN POPUP "&File" BEGIN MENUITEM "&New", IDM_F_NEW MENUITEM "&Open...\t Ctrl+F12", IDM_F_OPEN MENUITEM "&Save\t Shift+F12", IDM_F_SAVE MENUITEM "Save &As...\t F12", IDM_F_SAVEAS MENUITEM SEPARATOR MENUITEM "&Print...\t Ctrl+Shift+F12", IDM_F_PRINT MENUITEM "Printer Se&tup...", IDM_F_PRINTERSETUP MENUITEM SEPARATOR MENUITEM "E&xit\t Alt+F4", IDM_F_EXIT END POPUP "&Edit" BEGIN MENUITEM "&Undo", IDM_E_UNDO MENUITEM SEPARATOR MENUITEM "Cu&t\t Ctrl+X", IDM_E_CUT MENUITEM "&Copy\t Ctrl+C", IDM_E_COPY MENUITEM "&Paste\t Ctrl+V", IDM_E_PASTE MENUITEM "Cl&ear\t Del", IDM_E_CLEAR MENUITEM SEPARATOR MENUITEM "Select A&ll\t Ctrl+A", IDM_E_SELECTALL END POPUP "O&utline" BEGIN POPUP "&Zoom" BEGIN MENUITEM "&400%", IDM_V_ZOOM_400 MENUITEM "&300%", IDM_V_ZOOM_300 MENUITEM "&200%", IDM_V_ZOOM_200 MENUITEM "&100%", IDM_V_ZOOM_100 MENUITEM "&75%", IDM_V_ZOOM_75 MENUITEM "&50%", IDM_V_ZOOM_50 MENUITEM "&25%", IDM_V_ZOOM_25 END POPUP "&Left and Right margins" BEGIN MENUITEM "&nil", IDM_V_SETMARGIN_0 MENUITEM "&1 cm", IDM_V_SETMARGIN_1 MENUITEM "&2 cm", IDM_V_SETMARGIN_2 MENUITEM "&3 cm", IDM_V_SETMARGIN_3 MENUITEM "&4 cm", IDM_V_SETMARGIN_4 END POPUP "Add &Top Line" BEGIN MENUITEM "&1 cm", IDM_V_ADDTOP_1 MENUITEM "&2 cm", IDM_V_ADDTOP_2 MENUITEM "&3 cm", IDM_V_ADDTOP_3 MENUITEM "&4 cm", IDM_V_ADDTOP_4 END END POPUP "&Line" BEGIN MENUITEM "&Add Line\t Enter", IDM_L_ADDLINE MENUITEM "E&dit Line\t Alt+Enter", IDM_L_EDITLINE MENUITEM SEPARATOR MENUITEM "&Indent Line\t Tab", IDM_L_INDENTLINE MENUITEM "U&nindent Line\t Shift+Tab", IDM_L_UNINDENTLINE MENUITEM SEPARATOR MENUITEM "&Set Line Height...", IDM_L_SETLINEHEIGHT END POPUP "&Name" BEGIN MENUITEM "&Define Name...", IDM_N_DEFINENAME MENUITEM "&Goto Name...", IDM_N_GOTONAME END POPUP "&Options" BEGIN POPUP "&Button Bar Display" BEGIN MENUITEM "At &Top", IDM_O_BB_TOP MENUITEM "At &Bottom", IDM_O_BB_BOTTOM MENUITEM "&Popup", IDM_O_BB_POPUP MENUITEM "&Hide", IDM_O_BB_HIDE END POPUP "&Formula Bar Display" BEGIN MENUITEM "At &Top", IDM_O_FB_TOP MENUITEM "At &Bottom", IDM_O_FB_BOTTOM MENUITEM "&Popup", IDM_O_FB_POPUP END POPUP "&Row and Column Heading" BEGIN MENUITEM "&Show", IDM_O_HEAD_SHOW MENUITEM "&Hide", IDM_O_HEAD_HIDE END END POPUP "&Help" BEGIN MENUITEM "&About...", IDM_H_ABOUT END END OutlineAccel ACCELERATORS BEGIN VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT VK_F12, IDM_F_SAVEAS, VIRTKEY VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT "x", IDM_E_CUT, VIRTKEY, CONTROL "c", IDM_E_COPY, VIRTKEY, CONTROL "v", IDM_E_PASTE, VIRTKEY, CONTROL VK_DELETE, IDM_E_CLEAR, VIRTKEY VK_RETURN, IDM_L_ADDLINE, VIRTKEY VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT VK_TAB, IDM_L_INDENTLINE, VIRTKEY VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT "a", IDM_E_SELECTALL, VIRTKEY, CONTROL ; old conventions for editing VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT VK_F2, IDM_F2, VIRTKEY END ; Same as OutlineAccel but without Delete ; used when edit control of Formula Bar in focus ; OutlineAccelFocusEdit ACCELERATORS BEGIN VK_F12, IDM_F_OPEN, VIRTKEY, CONTROL VK_F12, IDM_F_SAVE, VIRTKEY, SHIFT VK_F12, IDM_F_SAVEAS, VIRTKEY VK_F12, IDM_F_PRINT, VIRTKEY, CONTROL, SHIFT "x", IDM_E_CUT, VIRTKEY, CONTROL "c", IDM_E_COPY, VIRTKEY, CONTROL "v", IDM_E_PASTE, VIRTKEY, CONTROL VK_RETURN, IDM_L_ADDLINE, VIRTKEY VK_RETURN, IDM_L_EDITLINE, VIRTKEY, ALT VK_TAB, IDM_L_INDENTLINE, VIRTKEY VK_TAB, IDM_L_UNINDENTLINE, VIRTKEY, SHIFT "a", IDM_E_SELECTALL, VIRTKEY, CONTROL VK_ESCAPE, IDM_FB_CANCEL, VIRTKEY ; old conventions for editing VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL VK_DELETE, IDM_E_CUT, VIRTKEY, SHIFT VK_INSERT, IDM_E_PASTE, VIRTKEY, SHIFT END OutlineIcon ICON outline.ico Image72 BITMAP image72.bmp Image96 BITMAP image96.bmp Image120 BITMAP image120.bmp LogoBitmap BITMAP ole2.bmp #include "DIALOGS.DLG"