home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / oleaut / lines / lines.rc < prev    next >
Text File  |  1996-06-14  |  3KB  |  85 lines

  1. #include "windows.h"
  2. #include "lines.h"
  3. //////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Icon
  6. //
  7.  
  8. IDI_ICON                 ICON    DISCARDABLE     "LINES.ICO"
  9.  
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // Dialog
  13. //
  14.  
  15. IDD_DRAWLINE DIALOG DISCARDABLE  22, 17, 186, 92
  16. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  17. CAPTION "Enter Line Attributes"
  18. FONT 8, "MS Shell Dlg"
  19. BEGIN
  20.     EDITTEXT        IDC_STARTPOINT_X,55,10,28,11,ES_AUTOHSCROLL
  21.     EDITTEXT        IDC_STARTPOINT_Y,55,25,28,11,ES_AUTOHSCROLL
  22.     EDITTEXT        IDC_ENDPOINT_X,55,40,28,11,ES_AUTOHSCROLL
  23.     EDITTEXT        IDC_ENDPOINT_Y,55,55,28,11,ES_AUTOHSCROLL
  24.     EDITTEXT        IDC_THICKNESS,55,70,28,11,ES_AUTOHSCROLL
  25.     PUSHBUTTON      "Choose Color ...",IDC_CHOOSECOLOR,100,70,66,15
  26.     DEFPUSHBUTTON   "OK",IDOK,130,6,50,14
  27.     PUSHBUTTON      "Cancel",IDCANCEL,130,23,50,14
  28.     LTEXT           "StartPoint.x",IDC_STATIC,5,10,45,10
  29.     LTEXT           "StartPoint.y",IDC_STATIC,5,25,45,8
  30.     LTEXT           "EndPoint.x",IDC_STATIC,5,40,40,8
  31.     LTEXT           "EndPoint.y",IDC_STATIC,5,55,45,8
  32.     LTEXT           "Thickness",IDC_STATIC,5,70,45,10
  33.     LTEXT           "All units must be specified in twips.",IDC_STATIC,90,44,
  34.                     94,16
  35. END
  36.  
  37.  
  38. //////////////////////////////////////////////////////////////////////////////
  39. //
  40. // Menu
  41. //
  42.  
  43. APPMENU MENU DISCARDABLE 
  44. BEGIN
  45.     POPUP "&File"
  46.     BEGIN
  47.         MENUITEM "&Exit",                       IDM_EXIT
  48.     END
  49.     POPUP "&Lines"
  50.     BEGIN
  51.         MENUITEM "&DrawLine ...",               IDM_DRAWLINE
  52.         MENUITEM "&Clear",                      IDM_CLEAR
  53.     END
  54. END
  55.  
  56.  
  57. //////////////////////////////////////////////////////////////////////////////
  58. //
  59. // String Table
  60. //
  61.  
  62. STRINGTABLE DISCARDABLE 
  63. BEGIN
  64.     IDS_Name                "Lines"
  65.     IDS_ErrorLoadingTypeLib "Failure: Cannot Load Type Library, lines.tlb"
  66.     IDS_ProgID              "Lines.Application"
  67. END
  68.  
  69. STRINGTABLE DISCARDABLE 
  70. BEGIN
  71.     IDS_Unexpected          "Unexpected error."
  72.     IDS_OutOfMemory         "Out of memory."
  73.     IDS_InvalidIndex        "Invalid index."
  74.     IDS_CollectionFull      "Collection is full."
  75.     IDS_LineFromOtherInstance 
  76.                             "Line from another instance of this application cannot be added."
  77.     IDS_CantAddEndPoints    "End points of line cannot be added to collection. (Make sure line has two end points)."
  78.     IDS_PointFromOtherInstance 
  79.                             "Point from another instance of this application cannot be added."
  80.     IDS_NoVisibleXCoordinate "No visible X coordinate."
  81.     IDS_NoVisibleYCoordinate "No visible Y coordinate."
  82.     IDS_NoStartPoint        "Line does not have a start point."
  83.     IDS_NoEndPoint          "Line does not have an end point."
  84. END
  85.