home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / HELLOAPP.PAK / HELLMAC.R next >
Encoding:
Text File  |  1997-05-06  |  3.1 KB  |  160 lines

  1. //  hello.r: Macintosh-specific resources
  2.  
  3. #include "types.r"
  4. #include "ftab.r"
  5. #include "CodeFrag.r"
  6. #include "systypes.r"
  7. #include "mrc\balloons.r"
  8.  
  9. resource 'SIZE' (-1)
  10. {
  11.     reserved,
  12.     acceptSuspendResumeEvents,
  13.     reserved,
  14.     canBackground,
  15.     doesActivateOnFGSwitch,
  16.     backgroundAndForeground,
  17.     dontGetFrontClicks,
  18.     ignoreAppDiedEvents,
  19.     is32BitCompatible,
  20.     isHighLevelEventAware,
  21.     localAndRemoteHLEvents,
  22.     isStationeryAware,
  23.     useTextEditServices,
  24.     reserved,
  25.     reserved,
  26.     reserved,
  27. #ifdef _MPPC_
  28.     2500 * 1024,
  29.     2500 * 1024
  30. #else    // 68K Mac
  31. #ifdef _DEBUG
  32.     3000 * 1024,
  33.     3000 * 1024
  34. #else
  35.     2000 * 1024,
  36.     2000 * 1024
  37. #endif
  38. #endif
  39. };
  40.  
  41. resource 'vers' (2)
  42. {
  43.     0x04,
  44.     0x00,
  45.     final,
  46.     0x00,
  47.     verUS,
  48.     "4.0",
  49.     "MFC for Macintosh 4.0"
  50. };
  51.  
  52. resource 'BNDL' (128, purgeable)    // hello bundle resource ID
  53. {
  54.     'HELL',         // hello signature
  55.     0,                      // resource ID of signature resource:
  56.                             // should be 0
  57.     {
  58.         'ICN#',             // mapping local IDs in 'FREF's to 'ICN#' IDs
  59.         {
  60.             0, 128,
  61.             1, 129
  62.         },
  63.         'FREF',             // local resource IDs for 'FREF's
  64.         {
  65.             0, 128,
  66.             1, 129
  67.         }
  68.     }
  69. };
  70.  
  71. resource 'FREF' (128, purgeable)    // hello application
  72. {
  73.     'APPL', 0,
  74.     ""
  75. };
  76.  
  77. resource 'FREF' (129, purgeable)    // hello document
  78. {
  79.     'HELL', 1,
  80.     ""
  81. };
  82.  
  83. type 'HELL' as 'STR ';
  84.  
  85. resource 'HELL' (0, purgeable)
  86. {
  87.     "hello Application"
  88. };
  89.  
  90. /* Balloon help resources */
  91.  
  92. resource 'hfdr' (-5696)
  93. {
  94.     HelpMgrVersion, hmDefaultOptions, 0, 0,
  95.     {
  96.         HMSTRResItem {500}
  97.     }
  98. };
  99.  
  100. resource 'hovr' (1000)
  101. {
  102.     HelpMgrVersion, hmDefaultOptions, 0, 0,
  103.  
  104.         HMStringItem    /* missing items override */
  105.         {
  106.             "Miscellaneous part of the Microsoft HelloApp "
  107.             "Sample Application."
  108.         },
  109.         {
  110.             HMSkipItem {},  /* title bar */
  111.             HMSkipItem {},  /* reserved. always skip item here */
  112.             HMStringItem    /* close box */
  113.             {
  114.                 "Click here to close the Microsoft HelloApp "
  115.                 "Sample Application."
  116.             },
  117.             HMStringItem    /* zoom box */
  118.             {
  119.                 "Click here to Zoom In or Zoom Out."
  120.             },
  121.             HMSkipItem {},  /* active app's inactive window */
  122.             HMStringItem    /* inactive app's window */
  123.             {
  124.                 "This is not part of the Microsoft HelloApp "
  125.                 "Application. It may be part of the Apple "
  126.                 "Finder, or some other application."
  127.             },
  128.             HMSkipItem {}   /* outside modal dialog */
  129.         }
  130. };
  131.  
  132. #ifdef _MPPC_
  133. resource 'STR ' (500)
  134. {
  135.     "This is the Win32 HelloApp sample application "
  136.     "ported to the Power Macintosh using Microsoft VC++ "
  137.     "Edition for the Apple Power Macintosh"
  138. };
  139. #else    // 68K Mac
  140. resource 'STR ' (500)
  141. {
  142.     "This is the Win32 HelloApp sample application "
  143.     "ported to the Macintosh using Microsoft VC++ Edition "
  144.     "for the Apple Macintosh"
  145. };
  146. #endif
  147.  
  148. #ifdef _MPPC_
  149. resource 'cfrg' (0) {
  150.   {
  151.     kPowerPC,
  152.     kFullLib,
  153.     kNoVersionNum,kNoVersionNum,
  154.     0, 0,
  155.     kIsApp,kOnDiskFlat,kZeroOffset,kWholeFork,
  156.     ""
  157.   }
  158. };
  159. #endif
  160.