Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 82a8be034ef45778a36e24db776f17cb > files > 63

polyml-doc-5.4.1-1.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title>Windows Interface Reference: Resource structure</title>
</head>

<body>

<h1>Resource </h1>

<p>The Resource structure contains functions to load resources from a resource file.
&nbsp; In many cases there are functions in other structures which will load the
appropriate item from the resource file.</p>

<pre>structure Resource :
  sig
   datatype ResourceType =
        RT_CURSOR | RT_BITMAP | RT_ICON | RT_MENU | RT_DIALOG | RT_STRING | RT_FONTDIR |
        RT_FONT | RT_ACCELERATOR | RT_RCDATA | RT_MESSAGETABLE | RT_GROUP_CURSOR |
        RT_GROUP_ICON | RT_VERSION | RT_DLGINCLUDE | RT_ANICURSOR | RT_ANIICON |
        RT_PLUGPLAY | RT_VXD

    type HRSRC
    type HRSRCGLOBAL
    type HINSTANCE

    datatype RESID = IdAsInt of int | IdAsString of string
    val MAKEINTRESOURCE : int -&gt; RESID

    type HUPDATE

    val BeginUpdateResource : string * bool -&gt; HUPDATE
    val EndUpdateResource : HUPDATE * bool -&gt; unit
    val FindResource : HINSTANCE * RESID * ResourceType -&gt; HRSRC
    val FindResourceEx : HINSTANCE * ResourceType * RESID * Locale.LANGID -&gt; HRSRC
    val FreeLibrary : HINSTANCE -&gt; bool
    val <a
name="LoadLibrary">LoadLibrary</a> : string -&gt; HINSTANCE
    val <a name="LoadResource">LoadResource</a> : HINSTANCE * HRSRC -&gt; HRSRCGLOBAL
    val LoadString : HINSTANCE * RESID -&gt; string
    val LockResource : HRSRCGLOBAL -&gt; Word8Vector.vector
    val SizeofResource : HINSTANCE * HRSRC -&gt; int
    val UpdateResource :
       HUPDATE * ResourceType * RESID * Locale.LANGID * Word8Vector.vector option -&gt; unit
  end</pre>
</body>
</html>