home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / MFCCALC.PAK / CALCMAC.R < prev    next >
Encoding:
Text File  |  1997-05-06  |  3.8 KB  |  193 lines

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