home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / showdib / showdib.rc < prev    next >
Text File  |  1997-10-05  |  7KB  |  187 lines

  1.  
  2. //-----------------------------------------------------------------------------
  3. // This is a part of the Microsoft Source Code Samples. 
  4. // Copyright (C) 1993-1997 Microsoft Corporation.
  5. // All rights reserved. 
  6. //  
  7. // This source code is only intended as a supplement to 
  8. // Microsoft Development Tools and/or WinHelp documentation.
  9. // See these sources for detailed information regarding the 
  10. // Microsoft samples programs.
  11. //-----------------------------------------------------------------------------
  12.  
  13. #include "windows.h"
  14. #include "showdib.h"
  15. #include "showdib.dlg"
  16.  
  17. SHOWICON ICON showdib.ico
  18.  
  19. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  20.  
  21. showdib MENU
  22.      BEGIN
  23.           POPUP "&File"
  24.                BEGIN
  25.                     MENUITEM "&Open...",             IDM_OPEN
  26.                     MENUITEM "&Save...",             IDM_SAVE
  27.                     MENUITEM "&Print",               IDM_PRINT
  28.                     MENUITEM SEPARATOR
  29.                     MENUITEM "E&xit",                IDM_EXIT
  30.                     MENUITEM SEPARATOR
  31.                     MENUITEM "&About ShowDIB ...",   IDM_ABOUT
  32.                END
  33.           POPUP "&Options"
  34.                BEGIN
  35.                     MENUITEM "&Update Colors",        IDM_UPDATECOL
  36.                     MENUITEM "&Hide Changes",         IDM_NOUGLY
  37.                     MENUITEM "&DIB to Screen",        IDM_DIBSCREEN
  38.                     MENUITEM "&Memory DIBs",          IDM_MEMORYDIB
  39.                     MENUITEM "&Transparent",          IDM_TRANSPARENT
  40.  
  41.                     MENUITEM SEPARATOR
  42.                     MENUITEM "&Paste DIB",            IDM_PASTEDIB
  43.                     MENUITEM "&Paste DDB",            IDM_PASTEDDB
  44.                     MENUITEM "&Paste Palette",        IDM_PASTEPAL
  45.                     MENUITEM "&Copy",                 IDM_COPY
  46.                END
  47.  
  48.           POPUP "&Animate"
  49.                BEGIN
  50.                     MENUITEM "Steal Colors",    IDM_STEALCOL
  51.                     MENUITEM "Off",             IDM_ANIMATE0
  52.                     MENUITEM "5",               IDM_ANIMATE5
  53.                     MENUITEM "50",              IDM_ANIMATE50
  54.                     MENUITEM "100",             IDM_ANIMATE100
  55.                     MENUITEM "200",             IDM_ANIMATE200
  56.                     MENUITEM "LongTime",        IDM_ANIMATE201
  57.                END
  58.      END
  59.  
  60. STRINGTABLE
  61.     BEGIN
  62.         IDS_MEMLOW            "<WM_CREATE> Not enough memory for palette."
  63.         IDS_NOMEM           "No Memory Available!"
  64.         IDS_OPENDIBPROMPT   "Select a DIB to display"
  65.         IDS_SAVEDIBPROMPT   "Select File to save DIB to"
  66.         IDS_CANTSAVEFILE    "Unable to save the specified file"
  67.         IDS_CANTOPENFILE    "Can't open file '%ls'"
  68.         IDS_BADDIBFILE      "%ls is not a Legitimate DIB File!"
  69.         IDS_CREATEPALFAIL   "CreatePalette() Failed"
  70.         IDS_CANTLOADRLE     "Could not load RLE!"
  71.         IDS_CANTCREATEBMP   "Could not create bitmap!"
  72.         IDS_CANTDRAWSCANS   "Could not draw DIB scans to device!"
  73.         IDS_CANTDRAWMAP     "Could not draw map to screen!"
  74.         IDS_SAVESTR         "&Save"
  75.         IDS_OPENSTR         "&Open"
  76.     END
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79. //
  80. // Version
  81. //
  82.  
  83. VS_VERSION_INFO VERSIONINFO
  84.  FILEVERSION 4,0,0,0
  85.  PRODUCTVERSION 4,0,0,0
  86.  FILEFLAGSMASK 0x3fL
  87. #ifdef _DEBUG
  88.  FILEFLAGS 0xbL
  89. #else
  90.  FILEFLAGS 0xaL
  91. #endif
  92.  FILEOS 0x10001L
  93.  FILETYPE 0x1L
  94.  FILESUBTYPE 0x0L
  95. BEGIN
  96.     BLOCK "StringFileInfo"
  97.     BEGIN
  98.         BLOCK "040904E4"
  99.         BEGIN
  100.             VALUE "CompanyName", "Microsoft Corporation\0"
  101.             VALUE "FileDescription", "ClipText Example Application\0"
  102.             VALUE "FileVersion", "Version 4.0\0"
  103.             VALUE "InternalName", "ClipText\0"
  104.             VALUE "LegalCopyright", "Copyright (C) Microsoft Corp. 1990-1995\0"
  105.             VALUE "LegalTrademarks", "Microsoft(R) is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
  106.             VALUE "ProductName", "ClipText\0"
  107.             VALUE "ProductVersion", "Version 4.0\0"
  108.         END
  109.         BLOCK "041104E4"
  110.         BEGIN
  111.             VALUE "CompanyName", "Microsoft Corporation\0"
  112.             VALUE "FileDescription", "ClipText Example Application\0"
  113.             VALUE "FileVersion", "Version 4.0\0"
  114.             VALUE "InternalName", "ClipText\0"
  115.             VALUE "LegalCopyright", "Copyright (C) Microsoft Corp. 1990-1995\0"
  116.             VALUE "LegalTrademarks", "Microsoft(R) is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
  117.             VALUE "ProductName", "ClipText\0"
  118.             VALUE "ProductVersion", "Version 4.0\0"
  119.         END
  120.     END
  121.     BLOCK "VarFileInfo"
  122.     BEGIN
  123.         VALUE "Translation", 0x409, 1252, 0x411, 1252
  124.     END
  125. END
  126.  
  127. #ifdef JAPAN
  128. LANGUAGE LANG_JAPANESE, SUBLANG_NEUTRAL
  129.  
  130. showdib MENU
  131.      BEGIN
  132.         POPUP "âtâ@âCâï(&F)"
  133.           BEGIN
  134.             MENUITEM "èJé¡(&O)...",           IDM_OPEN
  135.             MENUITEM "ò█æ╢(&S)...",           IDM_SAVE
  136.             MENUITEM "ê≤ìⁿ(&P)",           IDM_PRINT
  137.             MENUITEM SEPARATOR
  138.             MENUITEM "ÅIù╣(&X)",           IDM_EXIT
  139.             MENUITEM SEPARATOR
  140.             MENUITEM "âoü[âWâçâôÅεò±(&A)...",  IDM_ABOUT
  141.           END
  142.         POPUP "âIâvâVâçâô(&O)"
  143.           BEGIN
  144.             MENUITEM "ÉFé╠ìXÉV(&U)",          IDM_UPDATECOL
  145.             MENUITEM "ò╧ìXô_é╠ò\Ī(&H)",      IDM_NOUGLY
  146.             MENUITEM "DIBò\Ī(&D)",          IDM_DIBSCREEN
  147.             MENUITEM "DIBsâüâéâè(&M)",          IDM_MEMORYDIB
  148.             MENUITEM "ôºû╛(&T)",          IDM_TRANSPARENT
  149.  
  150.             MENUITEM SEPARATOR
  151.             MENUITEM "DIBé╠ô\éΦòté»(&A)",     IDM_PASTEDIB
  152.             MENUITEM "DDBé╠ô\éΦòté»(&S)",     IDM_PASTEDDB
  153.             MENUITEM "âpâîâbâgé╠ô\éΦòté»(&E)",IDM_PASTEPAL
  154.             MENUITEM "âRâsü[(&C)",          IDM_COPY
  155.           END
  156.  
  157.         POPUP "âAâjâüü[âVâçâô(&A)"
  158.           BEGIN
  159.             MENUITEM "âXâ`ü[âï âJâëü[",       IDM_STEALCOL
  160.             MENUITEM "énéeée",    IDM_ANIMATE0
  161.             MENUITEM "5",        IDM_ANIMATE5
  162.             MENUITEM "50",        IDM_ANIMATE50
  163.             MENUITEM "100",        IDM_ANIMATE100
  164.             MENUITEM "200",        IDM_ANIMATE200
  165.             MENUITEM "Æ╖Ä₧è╘",    IDM_ANIMATE201
  166.           END
  167.      END
  168.  
  169. STRINGTABLE
  170.     BEGIN
  171.         IDS_MEMLOW          "<WM_CREATE> âpâîâbâgé╠é╜é▀é╠âüâéâèé¬æ½éΦé▄é╣é±üB"
  172.         IDS_NOMEM           "âüâéâèé¬æ½éΦé▄é╣é±üI"
  173.         IDS_OPENDIBPROMPT   "ò\Īé╖éΘ DIB é╠æIæ≡"
  174.         IDS_SAVEDIBPROMPT   "DIB é≡ò█æ╢é╖éΘâtâ@âCâïé╠æIæ≡"
  175.         IDS_CANTSAVEFILE    "ÄwÆΦé│éΩé╜âtâ@âCâïé╓é╠ò█æ╢é═é┼é½é▄é╣é±üD"
  176.         IDS_CANTOPENFILE    "âtâ@âCâïé¬âIü|âvâôé┼é½é▄é╣é±üD '%ls'"
  177.         IDS_BADDIBFILE      "%s é═É│é╡éóécéhéaî`Ä«é╠âtâ@âCâïé┼é═éáéΦé▄é╣é±üI"
  178.         IDS_CREATEPALFAIL   "CreatePalette() é╔Ä╕ösé╡é▄é╡é╜üD"
  179.         IDS_CANTLOADRLE     "éqékédâtâ@âCâïé╠ô╟é▌ì₧é▌é¬é┼é½é▄é╣é±é┼é╡é╜üI"
  180.         IDS_CANTCREATEBMP   "ârâbâgâ}âbâvé╠ì∞ɼé¬é┼é½é▄é╣é±é┼é╡é╜üI"
  181.         IDS_CANTDRAWSCANS   "DIB é≡âfâoâCâXé╔ò`é»é▄é╣é±!"
  182.         IDS_CANTDRAWMAP     "ârâbâgâ}âbâvé≡âXâNâèü[âôé╔âRâsü[é┼é½é▄é╣é±!"
  183.         IDS_SAVESTR         "ò█æ╢(&S)"
  184.         IDS_OPENSTR         "èJé¡(&O)"
  185.     END
  186. #endif
  187.