Source code of Windows XP (NT5)
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.

109 lines
4.4 KiB

  1. /*************************************************************************
  2. **
  3. ** OLE 2.0 Server Sample Code
  4. **
  5. ** message.h
  6. **
  7. ** This file is a user customizable list of status messages associated
  8. ** with menu items.
  9. **
  10. ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
  11. **
  12. *************************************************************************/
  13. // Status bar messages and associated data.
  14. // Message type for status bar messages.
  15. typedef struct {
  16. UINT wIDItem;
  17. char *string;
  18. } STATMESG;
  19. /*
  20. * CUSTOMIZATION NOTE: Be sure to change NUM_POPUP if you
  21. * change the number of popup messages.
  22. */
  23. // REVIEW: these messages should be loaded from a string resource
  24. // List of all menu item messages.
  25. STATMESG MesgList[] =
  26. {
  27. { IDM_F_NEW, "Creates a new outline" },
  28. { IDM_F_OPEN, "Opens an existing outline file" },
  29. { IDM_F_SAVE, "Saves the outline" },
  30. { IDM_F_SAVEAS, "Saves the outline with a new name" },
  31. { IDM_F_PRINT, "Prints the outline" },
  32. { IDM_F_PRINTERSETUP, "Changes the printer and the printing options" },
  33. { IDM_F_EXIT, "Quits the application, prompting to save changes" },
  34. { IDM_E_UNDO, "Undo not yet implemented" },
  35. { IDM_E_CUT, "Cuts the selection and puts it on the Clipboard" },
  36. { IDM_E_COPY, "Copies the selection and puts it on the Clipboard" },
  37. { IDM_E_PASTE, "Inserts the Clipboard contents after current line" },
  38. { IDM_E_PASTESPECIAL,"Allows pasting Clipboard data using a special format" },
  39. { IDM_E_CLEAR, "Clears the selection" },
  40. { IDM_E_SELECTALL, "Selects the entire outline" },
  41. #if defined( OLE_CNTR )
  42. { IDM_E_INSERTOBJECT, "Inserts new object after current line" },
  43. { IDM_E_EDITLINKS, "Edit and view links contained in the document" },
  44. { IDM_E_CONVERTVERB, "Converts or activates an object as another type" },
  45. { IDM_E_OBJECTVERBMIN, "Opens, edits or interacts with an object" },
  46. { IDM_E_OBJECTVERBMIN+1, "Opens, edits or interacts with an object1" },
  47. { IDM_E_OBJECTVERBMIN+2, "Opens, edits or interacts with an object2" },
  48. { IDM_E_OBJECTVERBMIN+3, "Opens, edits or interacts with an object3" },
  49. { IDM_E_OBJECTVERBMIN+4, "Opens, edits or interacts with an object4" },
  50. { IDM_E_OBJECTVERBMIN+5, "Opens, edits or interacts with an object5" },
  51. #endif
  52. { IDM_L_ADDLINE, "Adds a new line after current line" },
  53. { IDM_L_EDITLINE, "Edits the current line" },
  54. { IDM_L_INDENTLINE, "Indents the selection" },
  55. { IDM_L_UNINDENTLINE, "Unindents the selection" },
  56. { IDM_L_SETLINEHEIGHT, "Modify the height of a line" },
  57. { IDM_N_DEFINENAME, "Assigns a name to the selection" },
  58. { IDM_N_GOTONAME, "Jumps to a specified place in the outline" },
  59. { IDM_H_ABOUT, "Displays program info, version no., and copyright" },
  60. { IDM_D_DEBUGLEVEL, "Set debug level (0-4)" },
  61. { IDM_D_INSTALLMSGFILTER,"Install/deinstall the IMessageFilter" },
  62. { IDM_D_REJECTINCOMING, "Return RETRYLATER to incoming method calls" },
  63. { IDM_O_BB_TOP, "Position ButtonBar at top of window" },
  64. { IDM_O_BB_BOTTOM, "Position ButtonBar at botttom of window" },
  65. { IDM_O_BB_POPUP, "Put ButtonBar in popup pallet" },
  66. { IDM_O_BB_HIDE, "Hide ButtonBar" },
  67. { IDM_O_FB_TOP, "Position FormulaBar at top of window" },
  68. { IDM_O_FB_BOTTOM, "Position FormulaBar at botttom of window" },
  69. { IDM_O_FB_POPUP, "Put FormulaBar in popup pallet" },
  70. { IDM_O_HEAD_SHOW, "Show row/column headings" },
  71. { IDM_O_HEAD_HIDE, "Hide row/column headings" },
  72. { IDM_O_SHOWOBJECT, "Show border around objects/links" },
  73. { IDM_V_ZOOM_400, "Set document zoom level" },
  74. { IDM_V_ZOOM_300, "Set document zoom level" },
  75. { IDM_V_ZOOM_200, "Set document zoom level" },
  76. { IDM_V_ZOOM_100, "Set document zoom level" },
  77. { IDM_V_ZOOM_75, "Set document zoom level" },
  78. { IDM_V_ZOOM_50, "Set document zoom level" },
  79. { IDM_V_ZOOM_25, "Set document zoom level" },
  80. { IDM_V_SETMARGIN_0, "Remove left/right document margins" },
  81. { IDM_V_SETMARGIN_1, "Set left/right document margins" },
  82. { IDM_V_SETMARGIN_2, "Set left/right document margins" },
  83. { IDM_V_SETMARGIN_3, "Set left/right document margins" },
  84. { IDM_V_SETMARGIN_4, "Set left/right document margins" },
  85. { IDM_V_ADDTOP_1, "Add top line" },
  86. { IDM_V_ADDTOP_2, "Add top line" },
  87. { IDM_V_ADDTOP_3, "Add top line" },
  88. { IDM_V_ADDTOP_4, "Add top line" }
  89. };
  90. #define NUM_STATS sizeof(MesgList)/sizeof(MesgList[0])
  91. #define NUM_POPUP 10 // Maximum number of popup messages.
  92. #define MAX_MESSAGE 100 // Maximum characters in a popup message.