home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m248 / 4.ddi / PALETTE.RC_ / PALETTE.RC
Encoding:
Text File  |  1993-02-01  |  1.6 KB  |  66 lines

  1. /* 
  2.    PALETTE.RC -- Resource File for PALETTE.UCD
  3.    Copyright 1987-1992, Macromedia, Inc.
  4.  
  5.    Revision History
  6.  
  7.        7/25/91 -   Initial version
  8.      11/29/92  -  updated descriptions
  9.  
  10. */
  11. #include "windows.h"
  12.  
  13.  
  14. /* 
  15.    The following custom resource is the directory of functions which can be
  16.    accessed by APW.  Each function is defined in detail by its own custom
  17.    resource.
  18. */
  19.  
  20. 1 DLL_HEADER LOADONCALL DISCARDABLE
  21. BEGIN
  22.    "SetPalette\0",
  23.    "ResetPalette\0",
  24.    "\0"
  25. END
  26.  
  27.  
  28. /* 
  29.    The following are the custom resources which define all attributes for
  30.    loading a specific function. Each function is listed in the directory
  31.    of funtions.
  32. */
  33.  
  34. SetPalette DLL_HEADER LOADONCALL DISCARDABLE
  35. BEGIN
  36.    "\0",
  37.    "I\0",
  38.    "WS\0",
  39.    "errcode := SetPalette(WindowHandle, ""palfile"")\r\n",
  40.    "\r\n",
  41.    "This function sets the Authorware palette from a palette file. ",
  42.    "The file must be a RIFF palette file, a DIB or a BMP file.\r\n",
  43.    "\r\n",
  44.    "It returns:\r\n"
  45.    "  0 if the palette was loaded\r\n"
  46.    "  1 if the window handle was incorrect\r\n"
  47.    "  2 if insufficient memory to load the palette\r\n"
  48.    "  3 if the file was not found\r\n"
  49.    "  4 if the file was not a supported type\0"
  50. END
  51.  
  52.  
  53. ResetPalette DLL_HEADER LOADONCALL DISCARDABLE
  54. BEGIN
  55.    "\0",
  56.    "I\0",
  57.    "W\0",
  58.    "errcode := ResetPalette(WindowHandle)\r\n"
  59.    "\r\n"
  60.    "This function resets the Authorware palette to its default setting."
  61.    "\r\n"
  62.    "It returns:\r\n"
  63.    "  0 if the palette was reset\r\n"
  64.    "  1 if the window handle was incorrect\0"
  65. END
  66.