File: Resource.html

package info (click to toggle)
polyml 5.6-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 31,892 kB
  • ctags: 34,453
  • sloc: cpp: 44,983; ansic: 24,520; asm: 14,850; sh: 11,730; makefile: 551; exp: 484; python: 253; awk: 91; sed: 9
file content (48 lines) | stat: -rw-r--r-- 1,686 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!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>