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;   -- $B%Q!<%D$N%?%$%W(B / $BB0@-(B / $B>uBV(B
    RECT    r;  -- $B%Q!<%DI=<(6k7ANN0h(B
    $B!%!%!%!%!%(B  -- $B8D!9$N%Q!<%D$K$h$j0[$J$k(B
}

type $B$O0J2<$N7A<0$G%Q!<%D$N%?%$%W(B / $BB0@-(B / $B>uBV$r<($7$F$$$k!#(B

$B%Q!<%D$N%?%$%W(B / $BB0@-(B / $B>uBV(B
$B?^(B 79 : $B%Q!<%D$N%?%$%W(B / $BB0@-(B / $B>uBV(B

r $B$O%Q!<%D$NI=<(6k7ANN0h$G$"$j!"(B $B%Q!<%DA4BN$r0O$`:G>.$N6k7A$G$"$j!"(B $BB0$9$k%&%#%s%I%&(B / $B%Q%M%k$NAjBP:BI8$G;XDj$5$l$k!#(B $BEPO?8e$b0\F0(B / $BJQ7A$,2DG=$G$"$k!#(B

$B%Q!<%D$NEPO?;~$K$O!"(B $B0J2<$K<($9I=<(B0@-$r;XDj$9$k$3$H$,2DG=$G$"$k!#(B $B$3$NI=<(B0@-$OEPO?8e$OJQ99$9$k$3$H$O$G$-$J$$!#(B $BI=<(B0@-$r;XDj$;$:$KEPO?$7$?%Q!<%D$KBP$7$F$O!"(B $B%G%U%)%k%H$NI=<(B0@-$,E,MQ$5$l$k!#(B $B$^$?!"I=<(B0@-$N%S%C%H$ODj5A;~$N$_M-8z$G$"$j!"(B cget_sts() $B$G$O!"(B $B>o$K(B 0 $B$H$J$C$FF@$i$l$k!#(B

typedef struct {
    W   frpat;      /* $BOH$N%Q%?!<%s(B(0:$B%G%U%)%k%H(B) */
    W   bgpat;      /* $BGX7J%Q%?!<%s(B(0:$B%G%U%)%k%H(B) */
    COLOR   chcol;  /* $BJ8;z?'(B (<0:$B%G%U%)%k%H(B) */
    W   misc;       /* $B3F

frpat, bgpat $B$O$=$l$>$l!"(B $BOH$HGX7J$N%Q%?!<%s$r<($7!"(B"PAT_DATA" $B%?%$%W$H$7$F%G!<%?%\%C%/%9$KEPO?$5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UL#$9$k!#(B $BJ8;zNs$H$7$F$OI=<(2DG=$JG$0U$NJ8;z$,5v$5$l!"$=$l0J30$N$b$N$OL5;k$5$l$k!#(B

$BJ8;zB0@-;XDj%3!<%I$O0J2<$K<($9$b$N$G$"$j!"(B $B%o!<%I$NCM$,(B 0 $B$H$J$k>l9g$b$"$k$3$H$KCm0U$,I,MW$G$"$k!#(B

        COLOR   chcol  -- $BJ8;z?';XDj(B (-1$B$OJ8;z?';XDjL5$7(B)
        W       class  -- $B%U%)%s%H%/%i%9;XDj(B (-1$B$O%G%U%)%k%H%U%)%s%H(B)
        UW      attr   -- $B%U%)%s%HB0@-;XDj(B (0$B$ODL>oBN(B)
        PNT     csize  -- $B%U%)%s%H%5%$%:;XDj(B
                          (csize.c.h $B$^$?$O(B csize.c.v $B$,(B0$B0J2<$O%G%U%)%k%H%5%$%:(B)

MC_ATTR = 0 $B$O!"(B $BJ8;z?';XDjL5$7!"%G%U%)%k%H%U%)%s%H!"(B $BDL>oBN$r0UL#$9$k!#J8;z?';XDjL5$7$N>l9g$O!"(B $B%Q!<%D$NI=<(B0@-$H$7$FDj5A$5$l$?J8;z?'$,E,MQ$5$l$k!#(B

$B?^7A%G!<%?$N>l9g$O!"?^7A$N6k7AI=<($H$J$j!"(B MC_ATTR $B$OL5;k$5$l$k!#(B $B$3$N>l9g!"D>8e$K0J2<$N(B2$B%o!<%I$N?^7A;XDj%3!<%I$,$/$k!#(B


        TTTT DDDD DDDD DDDD
        0000 0000 LLLL LLLL

        T:$B?^7A$N%G!<%?%?%$%W(BID
        0: $B%]%$%s%?%$%a!<%8(B  ("PTR_DATA")
        1: $B%T%/%H%0%i%`%$%a!<%8(B  ("PICT_DATA")
        2: $B%Q%?!<%s%G!<%?(B    ("PAT_DATA")
        3: $B%S%C%H%^%C%W%G!<%?(B    ("BMAP_DATA")
        4$B!A(B: $BM=Ls(B
        D:$B?^7A$N%G!<%?HV9f(B (0$B$N>l9g!"$^$?$OB8:_$7$J$$%G!<%?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B5v2D>uBV(B) :$B6k7AOH$NI=<((B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6X;_>uBV(B) :$B2<@~$NI=<((B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_NOFRAME : 0 ($BOHM-$j(B) : $B6k7AOH(B/$B2<@~$NI=<(M-$j(B
: 1 ($BOHL5$7(B) : $B6k7AOH(B/$B2<@~$NI=<(L5$7(B
P_EMPHAS : 0 ($BDL>o>uBV(B) : $BDL>oOH(B/$B2<@~(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6/D4>uBV(B) : $B6/D4OH(B/$B2<@~(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_APPEND : 0 ($BCV49(B) : $B%G%U%)%k%HA*Br;~!"J8;zNsA4BN$,A*Br$5$l$k(B
: 1 ($BDI2C(B) : $B%G%U%)%k%HA*Br;~!"J8;zNs$N:G8e$,%L%kA*Br$5$l$k(B
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B):$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW  type;       -- $B%?%$%W(B(TB_PARTS) / $BB0@-(B / $B>uBV(B
    RECT    r;      -- $B%Q!<%D$N6k7ANN0h(B
    W   txsize;     -- $B:GBgJ8;z?t(B
    TC* text;       -- $B=i4|I=<(%G!<%?J8;zNs$X$N%]%$%s%?(B
    PARTDISP atr;   -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} TEXTBOX;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BJ8;z$N?'(B
misc : ( COLORVAL ) $B%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>uBV(B) : $B6/D4OH(B/$B2<@~(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_APPEND : 0 ($BCV49(B) : $B%G%U%)%k%HA*Br;~!"J8;zNsA4BN$,A*Br$5$l$k(B
: 1 ($BDI2C(B) : $B%G%U%)%k%HA*Br;~!"J8;zNs$N:G8e$,%L%kA*Br$5$l$k(B
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B):$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW  type;       -- $B%?%$%W(B(XB_PARTS) / $BB0@-(B / $B>uBV(B
    RECT    r;      -- $B%Q!<%D$N6k7ANN0h(B
    W   txsize;     -- $B:GBgJ8;z?t(B
    TC* text;       -- $B=i4|I=<(%G!<%?J8;zNs$X$N%]%$%s%?(B
    PARTDISP atr;   -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} TEXTBOX;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BJ8;z$N?'!"
misc : ( COLORVAL ) $B%+%l%C%H!"$*$h$S!V$A$i$D$-OH!W$N?'(B

3.3.2.3 $B?tCM%\%C%/%9(B

$B?tCM%\%C%/%9$O!"(B1 $B$D$N?tCM$r;XDj$7$?7A<0$GI=<($7!"(B $B?tCM$NF~NO(B / $BJT=8$r9T$J$&%Q!<%D$G$"$k!#(B $BJT=8$O%\%C%/%9FbIt$G!"(B $BDL>o$N%j%W%l!<%9%(%G%#%?$H$7$F9T$J$&$3$H$,$G$-!"(B $BItJ,?tCMNs$NA*Br!"%I%i%C%0(B & $B%j%j!<%9(B $B$K$h$k0\F0(B / $BJ#L>4A;zJQ49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(B(NB_PARTS) / $BB0@-(B / $B>uBV(B
    RECT    r;      -- $B%Q!<%D$N6k7ANN0h(B
    UW  fmt;        -- $B?tCM%U%)!<%^%C%H;XDj(B
    union {         -- $B8=:_CM(B
        W   l;      -- $B@0?t$N>l9g(B
        DOUBLE  d;  -- $Bl9g(B
    } cv;
    PARTDISP atr;   -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} NUMBOX;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BJ8;z$N?'(B
misc : ( COLORVAL ) $B%+%l%C%H!"$*$h$S!V$A$i$D$-OH!W$N?'(B

3.3.2.4 $B%7%j%"%k%\%C%/%9(B

$B%7%j%"%k%\%C%/%9$O!"(B $BJ#?t$N%U%#!<%k%I$+$i9=@.$5$l$kFCDj$N7A<0$r;}$C$?%Q%i%a!<%?$rI=<($7JQ99$r2DG=$H$9$k$b$N$G$"$k!#(B $B3F%U%#!<%k%I$KF~$kFbMF$O!"$"$kO"B3HO0OFb$N@0?tCM!"(B $B$b$7$/$O=g=xIU$1$5$l$?J8;zNs$N=89g$G$"$j!"(B $B3F%U%#!<%k%I4V$OG$0U$N8GDjJ8;zNs$K$h$jJ,N%$5$l$k!#(B

$B@0?tCM%U%#!<%k%I$NCM$NJQ99$O(B 1 $B$E$D$NCM$NA}2C(B / $B8:>/!"(B $B$^$?$O%-!<$K$h$k$ND>@\F~NO$K$h$j9T$J$o$l!"(B $BJ8;zNs%U%#!<%k%I$NJQ99$O!"(B $B=g=xIU$1$5$l$?J8;zNs$N@5J}8~(B / $B5UJ}8~$X$N@Z49$($K$h$j9T$J$o$l$k!#(B

$B$J$*!"%U%#!<%k%I$N0lItJ,$NA*Br!"%I%i%C%0(B & $B%j%j!<%9(B $B$K$h$k0\F0(B / $BJ#

$B""(B $BI=<((B
$B%7%j%
$B?^(B 85 : $B%7%j%"%k%\%C%/%9(B
$B""(B $B>uBV!?B0@-(B
P_DISP : 0 ($B>C5n>uBV(B) :$B%Q!<%D$OI=<($5$l$F$$$J$$(B
: 1 ($BI=<(>uBV(B) :$B%Q!<%D$OI=<($5$l$F$$$k(B
P_BLINK : $BE,MQ$5$l$J$$(B
P_INACT : 0 ($B2DG=>uBV(B) :$BF~NO>uBV$N;~!"A*BrNN0hI=<($"$j(B
: 1 ($BITG=>uBV(B) :$BA*BrNN0h$NI=<($J$7(B
P_DISABLE : 0 ($B5v2D>uBV(B) :$B6k7AOH$NI=<((B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6X;_>uBV(B) :$B2<@~$NI=<((B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_NOFRAME : 0 ($BOHM-$j(B) :$B6k7AOH(B / $B2<@~$NI=<($"$j(B
: 1 ($BOHL5$7(B) :$B6k7AOH(B / $B2<@~$NI=<($J$7(B
P_EMPHAS : 0 ($BDL>o>uBV(B) :$BDL>oOH(B / $B2<@~(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6/D4>uBV(B) :$B6/D4OH(B / $B2<@~(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B):$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW  type;       -- $B%?%$%W(B(SB_PARTS) / $BB0@-(B / $B>uBV(B
    RECT    r;      -- $B%Q!<%D$N6k7ANN0h(B
    TC* fmt;        -- $BI=<(%U%)!<%^%C%H;XDj(B
    W   nfld;       -- $B%G!<%?%U%#!<%k%I?t(B
    W   *cv;        -- $B=i4|%U%#!<%k%ICMG[Ns$X$N%]%$%s%?(B
    PARTD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7AOH$NI=<($"$j(B
: 1 ($BOHL5$7(B) :$B6k7AOH$NI=<($J$7(B
P_EMPHAS : 0 ($BDL>o>uBV(B) :$BDL>oOH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6/D4>uBV(B) :$B6/D4OH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B):$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B%$%s%8%1!<%?$NH?E>I=<((B
$B?^(B 87 : $B%$%s%8%1!<%?$NH?E>I=<((B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW  type;       -- $B%?%$%W(B(AS_PARTS)$B!?B0@-!?>uBV(B
    RECT    r;      -- $B%Q!<%D$N6k7ANN0h(B
    W   cv;         -- $B8=:_CM(B (0:OFF$B!?(B1:ON)
    TC* name;       -- $B%9%$%C%AL>$X$N%]%$%s%?(B
    PARTDISP atr;   -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} SWSEL;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BJ8;z$N?'(B
misc : $B2<0L%o!<%I(B -- $B%$%s%8%1!<%?IA2hMQ$N%G!<%?HV9f(B
("PAT_DATA" $B%?%$%W$G6k7A$NBg$-$5$O!"(B $B?^(B 87 : $B%$%s%8%1!<%?$NH?E>I=<((B$B8GDj(B)
$B>e0L%o!<%I(B -- $BL$;HMQ(B

3.3.2.6 $B%F%-%9%H%b!<%a%s%?%j%9%$%C%A(B

$B%F%-%9%H%b!<%a%s%?%j%9%$%C%A$O!"(B $BJ8;zNs$GI=5-$5$l$?%9%$%C%AL>$N$_$G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&(B
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B):$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B

$B%F%-%9%H%*%k%?%M!<%H%9%$%C%A$HF1$89=B$$H$J$k!#(B

typedef struct {
    UW       type;    -- $B%?%$%W(B(MS_PARTS) / $BB0@-(B / $B>uBV(B
    RECT     r;       -- $B%Q!<%D$N6k7ANN0h(B
    W        cv;      -- $B8=:_CM(B ($BL$;HMQ(B)
    TC*      name;    -- $B%9%$%C%AL>$X$N%]%$%s%?(B
    PARTDISP atr;     -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} SWSEL;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BJ8;z$N?'(B
misc : $BL$;HMQ(B

3.3.2.7 $B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A(B

$B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A$O%F%-%9%H%*%k%?%M!<%H%9%$%C%A$HF1MM$N5!G=$r;}$D$,!"(B $B%9%$%C%AL>(B / $B%$%s%8%1!<%?$NBe$o$j$K(B ON / OFF $B>uBV$r<($9(B 2 $B$D$NG$0U$N?^7A(B ( $B%S%C%H%^%C%W%G!<%?(B ) $B$,I=<($5$l$k!#(B

$B""(B $BI=<((B
$B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A(B
$B?^(B 89 : $B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A(B
$B""(B $B>uBV!?B0@-(B
P_DISP : 0 ($B>C5n>uBV(B) :$B%Q!<%D$OI=<($5$l$F$$$J$$(B
: 1 ($BI=<(>uBV(B) :$B%Q!<%D$OI=<($5$l$F$$$k(B
P_BLINK : 0 ($BDL>o>uBV(B) :$B@5>oI=<((B
: 1 ($BE@LG>uBV(B) :$B?^7AItJ,$,E@LGI=<((B
P_INACT : 0 ($B2DG=>uBV(B) :$B@5>oI=<((B
: 1 ($BITG=>uBV(B) :$B3%?'2=I=<((B
P_DISABLE : 0 ($B5v2D>uBV(B) :$B@5>oI=<((B
: 1 ($B6X;_>uBV(B) :$B3%?'2=I=<((B
P_NOFRAME : 0 ($BOHM-$j(B) :$B6k7AOH$NI=<($"$j(B
: 1 ($BOHL5$7(B) :$B6k7AOH$NI=<($J$7(B
P_EMPHAS : 0 ($BDL>o>uBV(B) :$BDL>oOH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6/D4>uBV(B) :$B6/D4OH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B) :$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW       type;    -- $B%?%$%W(B(PA_PARTS) / $BB0@-(B / $B>uBV(B
    RECT     r;       -- $B%Q!<%D$N6k7ANN0h(B
    W        cv;      -- $B8=:_CM(B (0:OFF / 1:ON)
    W        onpat;   -- ON$B>uBV$N!V(BBMAP_DATA$B!W%?%$%W$NHV9f(B
    W        offpat;  -- OFF$B>uBV$N!V(BBMAP_DATA$B!W%?%$%W$NHV9f(B
    PARTDISP atr;     -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} PICTSW;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BL$;HMQ(B
misc : $BL$;HMQ(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G%U%)%k%HI=<((B):$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B

$B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A$HF1$89=B$$G$"$k$,!"(Boffpat $B$O;HMQ$7$J$$!#(B

typedef struct {
    UW       type;   -- $B%?%$%W(B(PM_PARTS)$B!?B0@-!?>uBV(B
    RECT     r;      -- $B%Q!<%D$N6k7ANN0h(B
    W        cv;     -- $B8=:_CM(B ($BL$;HMQ(B)
    W        onpat;  -- $B!V(BBMAP_DATA$B!W%?%$%W$N%G!<%?HV9f(B
    W        offpat; -- $BL$;HMQ(B
    PARTDISP atr;    -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} PICTSW;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BL$;HMQ(B
misc : $BL$;HMQ(B

3.3.2.9 $B%9%$%C%A%;%l%/%?(B

$B%9%$%C%A%;%l%/%?$OJ#?t$NA*Br;h$N$&$A!"(B 1 $B8D$J$$$7$O(B 0 $B8D$NA*Br;h$rA*Br$9$k$?$a$K;HMQ$5$l!"(B $B$9$Y$F$NA*Br;h$NL>>N$H!"(B $B$=$N>uBV$r<($9%$%s%8%1!<%?$+$i9=@.$5$l$k!#(B

$B""(B $BI=<((B
$B%9%$%C%A%;%l%/%?(B
$B?^(B 91 : $B%9%$%C%A%;%l%/%?(B
$B""(B $B>uBV(B / $BB0@-(B
P_DISP : 0 ($B>C5n>uBV(B) :$B%Q!<%D$OI=<($5$l$F$$$J$$(B
: 1 ($BI=<(>uBV(B) :$B%Q!<%D$OI=<($5$l$F$$$k(B
P_BLINK $BE,MQ$5$l$J$$(B
P_INACT : 0 ($B2DG=>uBV(B) :$B@5>oI=<((B
: 1 ($BITG=>uBV(B) :$BA4BN$,3%?'2=I=<((B
P_DISABLE : 0 ($B5v2D>uBV(B) :$B@5>oI=<((B
: 1 ($B6X;_>uBV(B) :$BA4BN$,3%?'2=I=<((B
P_NOFRAME : 0 ($BOHM-$j(B) :$B6k7AOH$NI=<($"$j(B
: 1 ($BOHL5$7(B) :$B6k7AOH$NI=<($J$7(B
P_EMPHAS : 0 ($BDL>o>uBV(B) :$BDL>oOH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6/D4>uBV(B) :$B6/D4OH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_NOSEL : 0 :$BI,$:(B1$B$D$OA*Br$5$l$k(B
: 1 :1$B$D$bA*Br$5$l$J$/$F$b$h$$(B
P_DOUBLE : 0 :$B=D$^$?$O2#0lNs(B
: 1 :2 $BCJAH$_(B
P_PARTDISP: 0 :$B=D0lNs(B ( P_DOUBLE = 0 $B$N;~$N$_M-8z(B)
: 1 :$B2#0lNs(B ( P_DOUBLE = 0 $B$N;~$N$_M-8z(B)
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B) :$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW       type;  -- $B%?%$%W(B(WS_PARTS) / $BB0@-(B / $B>uBV(B
    RECT     r;     -- $B%Q!<%D$N6k7ANN0h(B
    W        cv;    -- $B8=:_CM(B ($BA*BrHV9f(B 0$B!A(B)
    TC*      name;  -- $BA*Br;hL>Ns$X$N%]%$%s%?(B
    PARTDISP atr;   -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} SWSEL;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NO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A4BN$,3%?'2=I=<((B
P_NOFRAME : 0 ($BOHM-$j(B) :$B6k7AOH$NI=<($"$j(B
: 1 ($BOHL5$7(B) :$B6k7AOH$NI=<($J$7(B
P_EMPHAS : 0 ($BDL>o>uBV(B) :$BDL>oOH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
: 1 ($B6/D4>uBV(B) :$B6/D4OH(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B)
P_NOSEL : 0 :$BI,$:(B1$B$D$OA*Br$5$l$k(B
: 1 :1$B$D$bA*Br$5$l$J$/$F$b$h$$(B
P_NUMBER : 0 :$BHV9fIU$1$O9T$J$o$J$$(B
: 1 :$BHV9fIU$1$r9T$J$&(B
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B) :$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B

$B%9%$%C%A%;%l%/%?$HF1$89=B$$G$"$k!#(B

typedef struct {
    UW       type;   -- $B%?%$%W(B(SS_PARTS) / $BB0@-(B / $B>uBV(B
    RECT     r;      -- $B%Q!<%D$N6k7ANN0h(B
    W        cv;     -- $B8=:_CM(B ($BA*BrHV9f(B 0$B!A(B)
    TC*      name;   -- $BA*Br;hL>Ns$X$N%]%$%s%?(B
    PARTDISP atr;    -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} SWSEL;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B6k7ANN0h$NGX7J%Q%?!<%s(B
chcol: $BJ8;z$N?'(B
misc : $B2<0L%o!<%I(B -- $B%$%s%8%1!<%?$N%G!<%?HV9f(B
("PAT_DATA" $B%?%$%W$G6k7A$NBg$-$5$O!"(B $B?^(B 87 : $B%$%s%8%1!<%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$_M-8z(B)
P_NONOB : 0 :$B%H%s%\$rI=<($9$k(B
: 1 :$B%H%s%\$rI=<($7$J$$(B
P_SBAR : 0 :$B>o$N%\%j%e!<%`$H$7$FEPO?$9$k(B
: 1 :$B%&%#%s%I%&$N%9%/%m!<%k%P!<$H$7$FEPO?$9$k(B
P_HALIGN : 0 : ($B=D(B) $B?bD>%\%j%e!<%`(B
: 1 : ($B2#(B) $B?eJ?%\%j%e!<%`(B
P_PARTDISP: 0 ($B%G%U%)%k%HI=<((B) :$B%G%U%)%k%H$NI=<(B0@-$GI=<((B
: 1 ($BI=<(B0@-;XDj(B) :$B;XDj$5$l$?I=<(B0@-$GI=<((B
$B""(B $BF0:n(B
$B""(B $BDj5A9=B$(B
typedef struct {
    UW       type;       -- $B%?%$%W(B(VL_PARTS) / $BB0@-(B / $B>uBV(B
    RECT     r;          -- $B%Q!<%D$N6k7ANN0h(B
    W        clo,chi;    -- $B%N%V$N:G>.CM!":GBgCM(B
    W        lo,hi;      -- $BA4BN$N:G>.CM!":GBgCM(B
    W        patnum;     -- $B%Q%?!<%s;XDj$N%G!<%?HV9f(B
    PARTDISP atr;        -- $BI=<(B0@-(B(type $B$N(B MSB $B$,(B1$B$N;~$N$_(B)
} VOLUME;
$B""(B $BI=<(B0@-(B
frpat: $BOH!"$^$?$O2<@~$N%Q%?!<%s(B ( P_NOFRAME = 0 $B$N;~$N$_M-8z(B )
bgpat: $B%9%/%m!<%k%P!<$N%N%V(B ( $BGr(B ) $BItJ,$N%Q%?!<%s(B
chcol: $BL$;HMQ(B
misc : $BL$;HMQ(B

3.3.3 $B%G!<%?(B / $BDj?t$NDj5A(B

$B""(B $B%Q!<%D(BID

typedef W   PAID;       /* $B%Q!<%D(BID */

$B""(B $B%Q!<%D$NI=<(B0@-(B

typedef struct {
    W       frpat;      /* $BOH$N%Q%?!<%s(B(0:$B%G%U%)%k%H(B) */
    W       bgpat;      /* $BGX7J%Q%?!<%s(B(0:$B%G%U%)%k%H(B) */
    COLOR   chcol;      /* $BJ8;z?'(B (<0:$B%G%U%)%k%H(B) */
    W       misc;       /* $B3F

$B""(B $B%F%-%9%H%\%C%/%9(B

typedef struct textbox {    /* TB_PARTS,XB_PARTS */
    UW       type;
    RECT     r;
    W        txsize;
    TC       *text;
    PARTDISP atr;
} TEXTBOX;

$B""(B $B?tCM%\%C%/%9(B

typedef struct numbox {     /* NB_PARTS */
    UW       type;
    RECT     r;
    UW       fmt;        /* $B?tCM%U%)!<%^%C%H(B */
    union {
        W       l;
        double  d;
    } cv;
    PARTDISP atr;
} NUMBOX;

$B""(B $B%7%j%"%k%\%C%/%9(B

typedef struct serbox {     /* SB_PARTS */
    UW       type;
    RECT     r;
    TC       *fmt;       /* $BI=<(%U%)!<%^%C%H;XDj(B */
    W        nfld;       /* $B%G!<%?%U%#!<%k%I?t(B */
    W        *cv;        /* $B=i4|%U%#!<%k%ICMG[Ns(B */
    PARTDISP atr;
} SERBOX;

$B""(B $B%;%l%/%?(B

typedef struct swsel {      /* AS/MS_PARTS, WS_PARTS, SS_PARTS */
    UW       type;
    RECT     r;
    W        cv;     /* 1:on, 0:off / $B8=:_CM(B ($BA*BrHV9f(B 0..) */
    TC       *name;  /* $B%9%$%C%AL>(B/$BA*Br;hL>Ns$X$N%]%$%s%?(B */
    PARTDISP atr;
} SWSEL;

$B""(B $B%T%/%H%0%i%`%9%$%C%A(B

typedef struct pictsw {     /* PA_PARTS, PM_PARTS */
    UW       type;
    RECT     r;
    W        cv;         /* $B8=:_CM(B 0:off, 1:on / $BL$;HMQ(B */
    W        onpat;      /* on$B>uBV$N(B BMAP_DATA $B%?%$%W$NHV9f(B */
    W        offpat;     /* off$B>uBV$N(B BMAP_DATA $B%?%$%W$NHV9f(B / $BL$;HMQ(B */
    PARTDISP atr;
} PICTSW;

$B""(B $B%\%j%e!<%`(B

typedef struct volume {     /* VL_PARTS */
    UW       type;
    RECT     r;
    W        clo, chi;   /* $B%N%V$N:G>.CM!":GBgCM(B */
    W        lo, hi;     /* $BA4BN$N:G>.CM!":GBgCM(B */
    W        patnum;     /* $B%Q%?!<%s;XDj$N%G!<%?HV9f(B */
    PARTDISP atr;
} VOLUME;

$B""(B $B%Q!<%D(B

typedef union parts {
    TEXTBOX tb;     /* TB_PARTS,XB_PARTS */
    NUMBOX  nb;     /* NB_PARTS */
    SERBOX  sb;     /* SB_PARTS */
    SWSEL   ss;     /* AS_PARTS,MS_PARTS,WS_PARTS,SS_PARTS */
    PICTSW  pw;     /* PA_PARTS,PM_PARTS */
    VOLUME  vl;     /* VL_PARTS */
} PARTS;

$B""(B $B%Q!<%D%?%$%W(B

#define TB_PARTS    1   /* $B%F%-%9%H%\%C%/%9(B */
#define XB_PARTS    2   /* $B%7!<%/%l%C%H%F%-%9%H%\%C%/%9(B */
#define NB_PARTS    3   /* $B?tCM%\%C%/%9(B */
#define SB_PARTS    4   /* $B%7%j%"%k%\%C%/%9(B */
#define AS_PARTS    5   /* $B%F%-%9%H%*%k%?%M!<%H%9%$%C%A(B */
#define MS_PARTS    6   /* $B%F%-%9%H%b!<%a%s%?%j%9%$%C%A(B */
#define PA_PARTS    7   /* $B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A(B */
#define PM_PARTS    8   /* $B%T%/%H%0%i%`%b!<%a%s%?%j%9%$%C%A(B */
#define WS_PARTS    9   /* $B%9%$%C%A%;%l%/%?(B */
#define SS_PARTS    10  /* $B%9%/%m!<%k%;%l%/%?(B */
#define VL_PARTS    11  /* $B%\%j%e!<%`(B */
#define P_TYPE      0x001f  /* $B%?%$%W%^%9%/(B */
#define P_HALIGN    0x0020  /* $B?bD>!??eJ?G[CV(B */
#define P_PRESS     0x0040  /* $B%W%l%9F0:n;XDj(B */
#define P_NUMBER    0x0040  /* $BHV9fIU$1;XDj(B */
#define P_DOUBLE    0x0040  /* 2 $BCJAH$_G[CV(B */
#define P_SBAR      0x0040  /* $B%9%/%m!<%k%P!<;XDj(B */
#define P_DCLICK    0x0080  /* $B%@%V%k%/%j%C%/F0:n;XDj(B */
#define P_NOSEL     0x0080  /* 0 $BA*Br2DG=(B */
#define P_APPEND    0x0080  /* $BDI2CA*Br%b!<%I(B */
#define P_NONOB     0x0080  /* $B%H%s%\I=<(L5$7(B */
#define P_EMPHAS    0x0200  /* $B6/D4OH!?DL>oOH(B */
#define P_NOFRAME   0x0400  /* $BOHL5$7!?OHM-$j(B */
#define P_DISABLE   0x0800  /* $BA`:n6X;_!?A`:n5v2D(B */
#define P_INACT     0x1000  /* $BITG=>uBV!?2DG=>uBV(B */
#define P_BLINK     0x2000  /* $BE@LG>uBV(B */
#define P_DISP      0x4000  /* $BI=<(>uBV!?>C5n>uBV(B */
#define P_PARTDISP  0x8000  /* $BI=<(B0@-;XDj(B */

$B""(B $BB0@-%3!<%I(B($B%a%?%3!<%I(B)

#define MC_STR      0x1000  /* $BJ8;zNs(B */
#define MC_FIG      0x1001  /* $B?^7A%G!<%?(B */
#define MC_ATTR     0x1002  /* $BJ8;zB0@-;XDj(B */
#define MC_EMPHAS   0x1400  /* $B6/D49`L\(B */
#define MC_INACT    0x1800  /* $BITG=9`L\(B */
#define MC_SFLD     0x0800  /* $BJ8;zNs%U%#!<%k%I;XDj(B */
#define MC_NFLD     0x0c00  /* $B?tCM%U%#!<%k%I;XDj(B */
#define MC_NZERO    0x0200  /* $BA0%<%mI=<((B */
#define MC_NLEFT    0x0100  /* $B:8B7$((B */

$B""(B $B?tCM7A<0(B

#define P_LNUM      0x0000  /* $B@0?t(B  (32$B%S%C%H(B) */
#define P_DNUM      0x0080  /* $B.?tE@I=8=(B - 0 */
#define P_FIX1      0x0010  /* $B8GDj>.?tE@I=8=(B - 1 */
#define S_UNDEF     0x8000  /* $BIi$N:GBgCM(B */
#define L_UNDEF     0x80000000  /* $BIi$N:GBgCM(B */
#define D_UNDEF     1.797693e308    /* NaN */

$B""(B $B=*N;%3!<%I(B

#define P_CHANGE    0x1000  /* $BJQ2=$"$j(B */
#define P_BREAK     0x2000  /* $B=hM}$NCfCG(B */
#define P_SMASK     0x0fff  /* $B=*N;!?CfCG>uBV$N%^%9%/(B */
#define P_MENU      0x6010  /* $B%a%K%e!<;XDj$GCfCG(B */
#define P_EVENT     0x6020  /* $BB>$N%$%Y%s%HH/@8$GCfCG(B */
#define P_SGL       1   /* $BM-8z$J%7%s%0%k%/%j%C%/(B */
#define P_DBL       2   /* $BM-8z$J%@%V%k%/%j%C%/(B */
#define P_TAB       0   /* $B%?%V$G=*N;(B */
#define P_NL        1   /* $B2~CJMn!?2~9T$G=*N;(B */
#define P_END       2   /* $BF~NO=*$G=*N;(B */
#define P_BUT       3   /* $B%\%C%/%930$G$N%W%l%9(B */
#define P_MOVE      4   /* $B%\%C%/%930$X$N0\F0(B */
#define P_COPY      5   /* $B%\%C%/%930$X$NJ#

#define P_UP        0   /* $B>eJ}8~(B $B$X$N0\F0(B */
#define P_DOWN      1   /* $B2

#define P_SMOOTH    0   /* $B%9%`!<%90\F0(B */
#define P_AREA      4   /* $B%(%j%"0\F0(B */
#define P_JUMP      8   /* $B%8%c%s%W0\F0(B */

$B""(B $B>uBVJQ99%3%^%s%I(B

#define P_ERASE     0x0000  /* $B>C5n(B */
#define P_NODISP    0x1000  /* $B>C5n>uBV$K(B */
#define P_RDISP     0x8000  /* $B:FI=<((B */
#define P_NORMAL    0x0002  /* $BDL>oOH(B */
#define P_FRAME     0x0004  /* $BOHM-$j(B */
#define P_ENABLE    0x0008  /* $BA`:n5v2D(B */
#define P_ACT       0x0010  /* $B2DG=>uBV(B */

3.3.4 $B%Q!<%D%^%M!<%8%c$N4X?t(B

ccre_par
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_par(W wid, PARTS *parts)

$B!Z%Q%i%a!<%?![(B

W        wid $B%&%#%s%I%&(BID
PARTS   *parts  $B%Q!<%D%G!<%?(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

parts $B$K$h$jDj5A$7$?%3%s%H%m!<%k%Q!<%D$r(B wid $B$G;XDj$7$?%&%#%s%I%&(B / $B%Q%M%k$KB0$9$k%Q!<%D$H$7$FEPO?$7!"(B $B4X?tCM$H$7$FEPO?$5$l$?%Q!<%D$N%Q!<%D(BID ( pid > 0 )$B$rLa$9!#(B $B%Q!<%D$NDj5A%G!<%?$N>uBV$,!VI=<(>uBV!W$N>l9g$O%Q!<%D$NI=<($,9T$J$o$l$k$,!"(B $B!V>C5n>uBV!W$N>l9g$O!"EPO?$N$_$GI=<($O9T$J$o$l$J$$!#(B

$B!Z%(%i!<%3!<%I![(B

EX_ADR      : $B%"%I%l%9(B(parts$BEy(B)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EX_NOSPC    : $B%7%9%F%`$N%a%b%jNN0h$,ITB-$7$?!#(B
EX_PAR      : $B%Q%i%a!<%?$,IT@5$G$"$k!#(B
EX_WID      : $B%&%#%s%I%&(B(wid)$B$OB8:_$7$F$$$J$$!#(B
EX_DNUM     : $B%G!<%?(B(onpat$B!$(Boffpat$B!$(Bpatnum)$B$O%G!<%?%^%M!<%8%c$KEPO?$5$l$F$$$J$$!#(B
ccre_tbx
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_tbx(W wid, UW ty, RECT *r, W txsize, TC *text, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B TB_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        txsize $B:GBgJ8;z?t(B
TC       *text  $B=i4|J8;zNs(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%F%-%9%H%\%C%/%9%Q!<%D$r:n@.$7$=$N%Q!<%D(B ID $B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_xbx
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_xbx(W wid, UW ty, RECT *r, W txsize, TC *text, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B XB_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        txsize $B:GBgJ8;z?t(B
TC       *text  $B=i4|J8;zNs(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%7!<%/%l%C%H%F%-%9%H%\%C%/%9%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_nbx
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_nbx(W wid, UW ty, RECT *r, UW fmt, W *val, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B NB_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
UW       fmt    $B=q<0(B
W        *val   $B=i4|CM(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B?tCM%\%C%/%9%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_sbx
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_sbx(W wid, UW ty, RECT *r, TC *fmt, W nfld, W *cv, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B SB_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
TC       *fmt   $B=q<0(B
W        nfld   $B%U%#!<%k%I?t(B
W        *cv    $B=i4|CMG[Ns(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%7%j%"%k%\%C%/%9%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_asw
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_asw(W wid, UW ty, RECT *r, W cv, TC *name, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid     $B%&%#%s%I%&(BID
UW       ty      $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B AS_PARTS $B$K8GDj$5$l$k(B)
RECT     *r      $B%Q!<%DNN0h(B
W        cv      $B=i4|CM(B
TC       *name   $B%9%$%C%AL>J8;zNs(B
PARTDISP *atr    $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%F%-%9%H%*%k%?%M!<%H%9%$%C%A%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_msw
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_msw(W wid, UW ty, RECT *r, TC *name, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B MS_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
TC       *name  $B%9%$%C%AL>J8;zNs(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%F%-%9%H%b!<%a%s%?%j%9%$%C%A%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_pas
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_pas(W wid, UW ty, RECT *r, W cv, W onp, W offp, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B PA_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        cv     $B=i4|CM(B
W        onp    $B%*%s;~$N(B BMAP_DATA $B%?%$%W$N%G!<%?HV9f(B
W        offp   $B%*%U;~$N(B BMAP_DATA $B%?%$%W$N%G!<%?HV9f(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

  $B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_pms
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_pms(W wid, UW ty, RECT *r, W onp, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B PM_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        onp    $B%*%s;~$N(B BMAP_DATA $B%?%$%W$N%G!<%?HV9f(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%T%/%H%0%i%`%b!<%a%s%?%j%9%$%C%A%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_sel
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_sel(W wid, UW ty, RECT *r, W cv, TC *name, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B WS_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        cv     $B=i4|CM(B
TC       *name  $B%9%$%C%A%;%l%/%?J8;zNs(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%9%$%C%A%;%l%/%?%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_scr
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_scr(W wid, UW ty, RECT *r, W cv, TC *name, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B SS_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        cv     $B=i4|CM(B
TC       *name  $B%9%/%m!<%k%;%l%/%?J8;zNs(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%9%/%m!<%k%;%l%/%?%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

ccre_vol
 
$B%Q!<%D$NEPO?(B

$B!Z7A<0![(B

PAID    ccre_vol(W wid, UW ty, RECT *r, W *val, W patnum, PARTDISP *atr)

$B!Z%Q%i%a!<%?![(B

W        wid    $B%&%#%s%I%&(BID
UW       ty     $B%Q!<%DB0@-(B($B%?%$%W$OL5;k$5$l$F(B VL_PARTS $B$K8GDj$5$l$k(B)
RECT     *r     $B%Q!<%DNN0h(B
W        *val   $B=i4|CMG[Ns(B
W        patnum $B%N%V$N(B PAT_DATA $B%?%$%W$N%G!<%?HV9f(B
PARTDISP *atr   $BI=<(B0@-(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B%Q!<%D(BID$B!d(B0)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

$B%\%j%e!<%`%Q!<%D$r:n@.$7$=$N%Q!<%D(BID$B$rLa$9!#(B

$B!Z%(%i!<%3!<%I![(B

copn_par
 
$B%Q!<%D$N%G!<%?%\%C%/%9$+$i$NEPO?(B

$B!Z7A<0![(B

PAID    copn_par(W wid, W dnum, PNT *pos)

$B!Z%Q%i%a!<%?![(B

W   wid     $B%&%#%s%I%&(BID
W   dnum    PARTS_DATA $B%?%$%W$N%G!<%?HV9f(B
PNT *pos    $B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7ANN0h(B
UW      vis    $B>C5n(B / $BI=<((B / $BE@LG(B / $B:FI=<($N;XDj$r9T$J$&$b$N$G!"(B
               $B$=$NFbMF$O(B cdsp_par() $B$N>l9g$HF10l$G$"$k!#(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

wid $B$G;XDj$7$?%&%#%s%I%&(B / $B%Q%M%k$KB0$7$F$$$kEPO?:Q$_$N%Q!<%D$N$&$A!"(B *r $B$G;XDj$7$?6k7ANN0h$K=E$J$k%Q!<%D$N>C5n(B / $BI=<((B / $BE@LG(B / $B:FI=<($r9T$J$&!#(B $BC"$7!"(BP_SBAR = 1 $B$NB0@-$r;}$D!"(B $B%\%j%e!<%`$OBP>]30$H$J$k!#(B $B>C5n(B / $BI=<((B / $BE@LG(B / $B:FI=<($N=hM}$OEPO?$5$l$?=gHV$K9T$J$o$l$k!#(B

*r $B$O;XDj$7$?%&%#%s%I%&(B / $B%Q%M%k$NAjBP:BI8$G;XDj$5$l!"(B r = NULL $B$N>l9g$O!"%&%#%s%I%&(B / $B%Q%M%kA4BN$NNN0h$r0UL#$9$k!#(B

$B!Z%(%i!<%3!<%I![(B

EX_ADR  : $B%"%I%l%9(B(r)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B(vis $B$,IT@5(B)$B!#(B
EX_WID  : $B%&%#%s%I%&(B(wid)$B$OB8:_$7$F$$$J$$!#(B
cchk_par
 
$B%Q!<%D$N0LCV%A%'%C%/(B

$B!Z7A<0![(B

W   cchk_par(W pid, PNT pos)

$B!Z%Q%i%a!<%?![(B

W   pid    $B%Q!<%D(BID
PNT pos    $B0LCV:BI8(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B4X?tCM$O%Q!<%D$N%?%$%W(B($B4^$^$l$F$$$J$$>l9g$O(B0))
$B!c(B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$$$J$$>l9g$O(B 0 $B$r(B *pid $B$KLa$9!#(B

$B$?$@$7!"6X;_>uBV(B ( P_DISABLE = 1) $B$N%Q!<%D!"(B $B>C5n>uBV(B ( P_DISP=0) $B$N%Q!<%D!"(B $B$*$h$S(B P_SBAR = 1 $B$NB0@-$r;}$D%\%j%e!<%`$O%5!<%A$NBP>]30$H$J$k!#(B

$B4X?tCM$H$7$F$O!"4^$^$l$F$$$J$$>l9g$O(B 0 $B$,La$j!"(B $B4^$^$l$F$$$?>l9g$O$=$N%Q!<%D$N%?%$%W%3!<%I(B ( 1 $B!A(B ) $B$,La$k!#(B

$B!Z%(%i!<%3!<%I![(B

EX_ADR  : $B%"%I%l%9(B(pid)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EX_WID  : $B%&%#%s%I%&(B(wid)$B$OB8:_$7$F$$$J$$!#(B
cact_par
 
$B%Q!<%D$NF0:n

$B!Z7A<0![(B

W   cact_par(W pid, WEVENT *ev)

$B!Z%Q%i%a!<%?![(B

W       pid $B%Q!<%D(BID
WEVENT  *ev $B%Q!<%DF0:n$N$-$C$+$1$H$J$C$?%$%Y%s%H(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B4X?tCM2<0L(B16bit): 01PC SSSS SSSS SSSS

            P = 0: $B=hM}$N=*N;(B
              = 1: $B=hM}$NCfCG(B
            C = 0: $B8=:_CM(B/$B>uBV$NJQ2=L5$7(B
              = 1: $B8=:_CM(B/$B>uBV$NJQ2=M-$j(B
            S    : $B3F

$B!Z2r@b![(B

pid $B$G;XDj$7$?%Q!<%D$N8GM-$NF0:n$r3+;O$9$k!#(B *ev $B$O%Q!<%D$NF0:n$N5/F0$H$9$k!"(B $B%&%#%s%I%&%$%Y%s%H$G$"$j!"%Q!<%D$NF0:n=*N;!"CfCG;~$K$O!"(B $B=*N;!"CfCG$N7@5!$H$J$C$?%$%Y%s%H$,@_Dj$5$l$FLa$k!#(B

$B$3$N4X?t$NF0:n$O%Q!<%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KEYUP$B!$(BEV_AUTKEY $B0J30$N%$%Y%s%H$,H/@8$7$?>l9g!"$^$?$O!"%a%K%e!<;XDj$,H/@8$7$?>l9g$O!"(B $B$=$N$^$^$N>uBV$G=hM}$rCfCG$9$k!#(B*ev $B$K$OF@$i$l$?%$%Y%s%H$,@_Dj$5$l!"(B $B4X?tCM$O0J2<$N$b$N$H$J$k!#(B
            $B4X?tCM!'(B
                $BB>$N%$%Y%s%H$N>l9g(B (P_EVENT)$B!'(B
                0110 0000 0010 0000
                $B%a%K%e!<;XDj$N>l9g(B (P_MENU)$B!'(B
                0110 0000 0001 0000
    
            $B$J$*!"%a%K%e!<;XDj$H$O!"0J2<$N$$$:$l$+$N>l9g$r<($9!#(B
            (1) $B%a%K%e!<%\%?%s$N%/%j%C%/(B
            (2) $B!VL?Na!W%-!<$r2!$7$?>uBV$G$N%W%l%9(B
            (3) $B!VL?Na!W%-!<$HJL$N%-!<$NF1;~2!$7(B($B%-!<%^%/%m(B)
    

    $B%"%W%j%1!<%7%g%s$O!"BP1~$9$k=hM}$r9T$J$C$?8e!"(B *ev $B$N%$%Y%s%H%?%$%W$K(B EV_NULL$B$r@_Dj$7$F!"(B $B:F$S(B cact_par() $B$r%3!<%k$7$F=hM}$r:F3+$9$kI,MW$,$"$k!#(B

  • $B=*N;;~$K$O=hM}=*N;$N7@5!$H$J$C$?%$%Y%s%H$,$=$N$^$^(B *ev $B$K@_Dj$5$l$k!#(B
  • $B=hM}=*N;;~$K$O!"0J2<$N4X?tCM$,La$k!#(B
            $B4X?tCM(B:010C 0000 0000 0SSS
    
                    C = 0: $B8=:_CM$NJQ2=L5$7(B
                      = 1: $B8=:_CM$NJQ2=M-$j(B
                    S = P_TAB   $B!V%?%V!W(B
                      = P_NL  $B!V2~CJMn(B/$B2~9T!W(B
                      = P_END   $B!VF~NO=*!W(B
                      = P_BUT $B%\%C%/%930$G$N%W%l%9(B
                      = P_MOVE   $B%\%C%/%930$X$N0\F0(B
                      = P_COPY   $B%\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WN, EV_KEYUP, EV_AUTKEY $B0J30$N%$%Y%s%H$,H/@8$7$?>l9g!"(B $B$^$?$O%a%K%e!<;XDj$,H/@8$7$?>l9g$O!"(B $B$=$N$^$^$N>uBV$G=hM}$rCfCG$9$k!#(B*ev $B$K$OF@$i$l$?%$%Y%s%H$r@_Dj$5$l!"(B $B4X?tCM$O0J2<$N$b$N$H$J$k!#(B
            $B4X?tCM!'(B
                $BB>$N%$%Y%s%H$N>l9g(B (P_EVENT)$B!'(B
                0110 0000 0010 0000
                $B%a%K%e!<;XDj$N>l9g(B (P_MENU)$B!'(B
                0110 0000 0001 0000
    
    $B%"%W%j%1!<%7%g%s$O!"BP1~$9$k=hM}$r9T$J$C$?8e!"(B *ev $B$N%$%Y%s%H%?%$%W$K(B EV_NULL $B$r@_Dj$7$F!"(B $B:F$S(B cact_par() $B$r%3!<%k$7$F=hM}$r:F3+$9$kI,MW$,$"$k!#(B
  • $B=*N;;~$K$O=hM}=*N;$N7@5!$H$J$C$?%$%Y%s%H$,$=$N$^$^(B *ev $B$K@_Dj$5$l$k!#(B
  • $B=hM}=*N;;~$K$O!"0J2<$N4X?tCM$,La$k!#(B
            $B4X?tCM(B:010C 0000 0000 0SSS
    
                    C = 0: $B8=:_CM$NJQ2=L5$7(B
                    = 1: $B8=:_CM$NJQ2=M-$j(B
                    S = P_TAB   $B!V%?%V!W(B
                    = P_NL  $B!V2~CJMn(B/$B2~9T!W(B
                    = P_END   $B!VF~NO=*!W(B
                    = P_BUT $B%\%C%/%930$G$N%W%l%9(B
    

$B%F%-%9%H(B / $B%T%/%H%0%i%`%*%k%?!<%M!<%H%9%$%C%A$N>l9g(B

EV_BUTDWN $B$^$?$O(B EV_SWITCH $B$N>l9g(B :
  • $B!VITG=>uBV!W$N>l9g$O!V2DG=>uBV!W$H$9$k!#$^$?!VE@LG>uBV!W$N>l9g$O!VI=<(>uBV!W$H$9$k!#(B
  • $B%$%s%8%1!<%?$^$?$O?^7AI=<($rH?E>I=<($7!"%W%l%9Cf$N0LCV$K1~$8$FH?E>I=<($N2r=|!?I|3h$r9T$J$&!#(B
  • $B%j%j!<%9$5$l$?>l9g$O!"$=$N0LCV$K1~$8$F8=:_CM!?I=<($rJQ99$7!"0J2<$N4X?tCM$rLa$7$F=hM}$r=*N;$9$k!#(B
            $B4X?tCM(B:010C 0000 0000 000S
    
                    C = 0: $B8=:_CM$NJQ2=L5$7!#(B($B6k7A30$G$N%j%j!<%9(B)
                      = 1: $B8=:_CM$NJQ2=M-$j!#(B($B6k7AFb$G$N%j%j!<%9(B)
                    S   : $B8=:_CM(B (0:OFF, 1:ON)
    
  • $B%j%j!<%9;~$KH/@8$7$?(B EV_BUTUP $B$O%$%Y%s%H%-%e!<$+$iEV_KEYDWN, EV_KEYUP, EV_AUTKEY $B$O%$%Y%s%H%-%e!<$+$i$N%$%Y%s%H$O%$%Y%s%H%-%e!<$K;D$k!#(B
$B$=$NB>$N>l9g(B :
$B2?$b$;$:4X?tCM(B 0 $B$rLa$9!#(B(*ev $B$NFbMF$OJQ2=$7$J$$(B)

$B%F%-%9%H(B / $B%T%/%H%0%i%`%b!<%a%s%?%j%9%$%C%A$N>l9g(B

EV_BUTDWN $B$^$?$O(B EV_SWITCH $B$N>l9g(B :
  • $B!VITG=>uBV!W$N>l9g$O!V2DG=>uBV!W$H$9$k!#$^$?!VE@LG>uBV!W$N>l9g$O!VI=<(>uBV!W$H$9$k!#(B
  • $B6k7AFbIt$^$?$O?^7AI=<($rH?E>I=<($7!"%W%l%9Cf$N0LCV$K1~$8$FH?E>I=<($N2r=|(B / $BI|3h$r9T$J$&!#(B
  • P_PRESS = 1 ( $B%W%l%9Cf$NF0:n$r9T$J$&(B ) $B$N>l9g$O!"(B $B%W%l%9Cf$G!"$+$D%Q!<%D$N6k7ANN0hFb$K$"$k>l9g(B ( $BH?E>I=<($5$l$F$$$k>uBV(B ) $B$O!"(B $B0J2<$N4X?tCM$rLa$7$F=hM}$rCfCG$9$k!#(B $B$3$N;~(B *ev $B$N%$%Y%s%H%?%$%W$O(B EV_NULL $B$K@_Dj$5$l$k!#(B
            $B4X?tCM!'(B0110 0000 0000 0000
    

    $B%"%W%j%1!<%7%g%s$O!"(B $B%W%l%9Cf$NF0:n$r9T$J$C$?8e!":F$S(B cact_par() $B$r%3!<%k$9$kI,MW$,$"$k!#(B

  • P_DCLICK = 0 ( $B%@%V%k%/%j%C%/$N8!=P$J$7(B ) $B$N>l9g$O!"(B $B%j%j!<%9$5$l$?;~E@$G$9$0=hM}$r=*N;$9$k$,!"(B P_DCLICK = 1 $B$N>l9g$O!"(B $B%@%V%k%/%j%C%/$+H]$+$r%A%'%C%/$7$?8e%j%?!<%s$9$k(B ($B$J$*!"%@%V%k%/%j%C%/$O:G=i$N%W%l%9$+$i(B2$B2sL\$N%j%j!<%9$^$G$N;~4V$GH=CG$5$l$k(B)$B!#(B
  • $B%j%j!<%9$5$l$?>l9g$O!"$=$N0LCV$K1~$8$F8=:_CM(B / $BI=<($rJQ99$7!"(B $B0J2<$N4X?tCM$rLa$7$F=hM}$r=*N;$9$k!#(B
            $B4X?tCM(B:010C 0000 0000 00DS
    
                    C = 0: $B>uBV$NJQ2=L5$7!#(B($B%j%j!<%9$,6k7ANN0h30(B)
                      = 1: $B>uBV$NJQ2=M-$j!#(B($B%j%j!<%9$,6k7ANN0hFb(B)
                    D = 1: $B%@%V%k%/%j%C%/(B (P_DCLICK=1$B$N;~$N$_(B)
                    S = 1: $B%7%s%0%k%/%j%C%/(B
                    (C=0$B$N>l9g$O!"(BD,S$B$b(B0$B$H$J$k(B)
    
  • $B%j%j!<%9;~$KH/@8$7$?(B EV_BUTUP $B$O%$%Y%s%H%-%e!<$+$il9g$OESCf$N(B EV_BUTUP, EV_BUTDWN $B$bEV_KEYDWN, EV_KEYUP, EV_AUTKEY $B$O%$%Y%s%H%-%e!<$+$i$N%$%Y%s%H$O%$%Y%s%H%-%e!<$K;D$k!#(B
EV_NULL $B$N>l9g(B :
$B6k7ANN0hFb$G%W%l%9$5$l$?$H8+$J$7$F!"(BEV_BUTDWN $B$HF1MM$N=hM}$r9T$J$&!#(B
$B$=$NB>$N>l9g(B :
$B2?$b$;$:4X?tCM(B 0 $B$rLa$9(B ( *ev $B$NFbMF$OJQ2=$7$J$$(B)$B!#(B

$B%9%$%C%A%;%l%/%?$N>l9g(B

EV_BUTDWN $B$^$?$O(B EV_SWITCH $B$N>l9g(B :
  • $B!VITG=>uBV!W$N>l9g$O!V2DG=>uBV!W$H$9$k!#(B
  • $BBP1~$9$kA*Br;h$N%$%s%8%1!<%?$rH?E>I=<($7!"%W%l%9Cf$N0LCV$K1~$8$FH?E>I=<($N@Z$j49$($r9T$J$&!#(B
  • $B%j%j!<%9$5$l$?>l9g$O!"$=$N0LCV$K1~$8$F8=:_CM(B / $BI=<($NJQ99$r9T$J$$!"0J2<$N4X?tCM$rLa$7$F=hM}$r=*N;$9$k!#(B
            $B4X?tCM(B:010C SSSS SSSS SSSS
    
                    C = 0: $B8=:_CM$NJQ2=L5$7(B
                      = 1: $B8=:_CM$NJQ2=M-$j(B
                    S    : $B8=:_CM(B ($B8=:_$NA*Br;h$NHV9f!"(B0:$BA*BrL5$7(B)
    

    $B8=:_CM$,(B4095$B$rD6$($k>l9g$K$O!"JV$5$l$k8=:_CM$OITDj$H$J$k!#(B

  • $B%j%j!<%9;~$KH/@8$7$?(B EV_BUTUP $B$O%$%Y%s%H%-%e!<$+$iEV_KEYDWN, EV_KEYUP, EV_AUTKEY $B$O%$%Y%s%H%-%e!<$+$i$N%$%Y%s%H$O%$%Y%s%H%-%e!<$K;D$k!#(B
$B$=$NB>$N>l9g(B :
$B2?$b$;$:4X?tCM(B 0 $B$rLa$9(B(*ev $B$NFbMF$OJQ2=$7$J$$(B)$B!#(B

$B%9%/%m!<%k%;%l%/%?(B

EV_BUTDWN $B$^$?$O(B EV_SWITCH $B$N>l9g(B :
  • $B!VITG=>uBV!W$N>l9g$O!V2DG=>uBV!W$H$9$k!#(B
  • $B%$%Y%s%HH/@80LCV(B ( ev->e.pos ) $B$,%9%/%m!<%k(B ( $BA*Br;hI=<((B ) $BNN0h$N>l9g!"(B $BBP1~$9$kA*Br;h$rH?E>I=<($7!"(B $B%W%l%9Cf$N0LCV$K1~$8$FH?E>I=<($N@Z$j49$($r9T$J$&!#(B
  • $B%$%Y%s%HH/@80LCV(B ( ev->e.pos ) $B$,%9%/%m!<%k%P!l9g!"(B $B%9%/%m!<%k%P!<=hM}(B ( $B%8%c%s%W0\F0!"%9%`!<%90\F0!"%(%j%"0\F0(B ) $B$r9T$J$$!"(B $B%9%/%m!<%kIt$NI=<($r%9%/%m!<%k$9$k!#(B
  • $B%9%`!<%90\F0$N:]$K!"(B $B%\%j%e!<%`$NMM$JCfCG$O5/$i$:!"I=<($N99?7Ey$OA4$F%Q!<%D%^%M!<%8%cB&$G9T$J$&!#(B
  • $B%(%j%"0\F0$N0\F0I}$O!"(B ($BI=<($5$l$F$$$kA*Br;h?t(B - 1 ) $B$GI=<($N99?7Ey$OA4$F%Q!<%D%^%M!<%8%cB&$G9T$J$&!#(B
  • $B%j%j!<%9$5$l$?>l9g$O!"(B $B$=$N0LCV$K1~$8$F8=:_CM(B / $BI=<($NJQ99$r9T$J$$!"(B $B0J2<$N4X?tCM$rLa$7$F=hM}$r=*N;$9$k!#(B
            $B4X?tCM(B:010C SSSS SSSS SSSS
    
                    C = 0: $B8=:_CM$NJQ2=L5$7!#(B
                      = 1: $B8=:_CM$NJQ2=M-$j!#(B
                    S    : $B8=:_CM(B ($B8=:_$NA*Br;h$NHV9f!"(B0:$BA*BrL5$7(B)
    

    $B8=:_CM$,(B 4095 $B$rD6$($k>l9g$K$O!"JV$5$l$k8=:_CM$OITDj$H$J$k!#(B

  • $B%j!<%9;~$KH/@8$7$?(B EV_BUTUP $B$O%$%Y%s%H%-%e!<$+$iEV_KEYDWN, EV_KEYUP, EV_AUTKEY $B$O%$%Y%s%H%-%e!<$+$i$N%$%Y%s%H$O%$%Y%s%H%-%e!<$K;D$k!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N>l9g$O!"$=$N$^$^=hM}$r=*N;$9$k!#(B $B8=:_CM(B / $BI=<($N99?7$O9T$J$o$l$J$$!#(B

  • $B!Z%9%`!<%90\F0![(B

    $B%@%V%k%/%j%C%/$G$J$$>l9g$O!"%W%l%9Cf$G!"(B $B%\%j%e!<%`$N6k7ANN0hFb$K$"$j!"(B $B%H%s%\$H$N5wN%$,$"$k>l9g$O!"(B $B$9$0$K0J2<$N4X?tCM$rLa$7$F=hM}$rCfCG$9$k!#(B $B$3$N;~(B *ev $B$N%$%Y%s%H%?%$%W$O(B EV_NULL $B$K@_Dj$5$l$k!#(B

            $B4X?tCM(B:0110 0000 0000 00DD
                    D = 0: P_UP     -- $B>eJ}8~(B $B$X$N0\F0(B
                      = 1: P_DOWN   -- $B2
    

    $B%"%W%j%1!<%7%g%s$O!"BP1~$9$k=hM}$r9T$J$$%\%j%e!<%`$N8=:_CM(B (clo, chi) $B$r99?7$7$?8e!"(B $B:F$S(B cact_par() $B$r%3!<%k$9$kI,MW$,$"$k!#(B

  • $B%j%j!<%9$5$l$?>l9g!"0J2<$N4X?tCM$rLa$7$F=hM}$r=*N;$9$k!#(B
            $B4X?tCM(B:010C 0000 0000 SSDD
    
                    C = 0: $B>uBV$NJQ2=L5$7(B
                      = 1: $B>uBV$NJQ2=M-$j(B
                    D = 0: P_UP  -- $B>eJ}8~(B $B$X$N0\F0(B
                      = 1: P_DOWN   -- $B2
           
  • $B%j%j!<%9;~$KH/@8$7$?(B EV_BUTUP $B$O%$%Y%s%H%-%e!<$+$il9g$OESCf$N(B EV_BUTUP, EV_BUTDWN $B$bEV_KEYDWN, EV_KEYUP, EV_AUTKEY $B$O%$%Y%s%H%-%e!<$+$i$N%$%Y%s%H$O%$%Y%s%H%-%e!<$K;D$k!#(B
EV_NULL $B$N>l9g(B :
$B%Q%?!<%sNN0hFb$G%W%l%9$5$l$?$H8+$J$7$F!"(BEV_BUTDWN $B$N%9%`!<%9=hM}$HF1MM$N=hM}$r9T$J$&!#(B

$B!Z%(%i!<%3!<%I![(B

EX_ADR  : $B%"%I%l%9(B(ev)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
cget_val
 
$B%Q!<%D$NCM$N

$B!Z7A<0![(B

W   cget_val(W pid, W size, W *value)

$B!Z%Q%i%a!<%?![(B

W   pid     $B%Q!<%D(BID
W   size    value $B$N%5%$%:(B($B%o!<%I?t$^$?$O%O!<%U%o!<%I?t(B)
W   *value  $BCM$r3JG<$9$kG[Ns(B

$B!Z%j%?!<%sCM![(B

$B!f(B0    $B@5>o(B($B4X?tCM$O8=:_CM$N%o!<%I?t(B)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

pid $B$G;XDj$7$?%Q!<%D$NCM$rvalue $B$G;XDj$7$?NN0h$K3JG<$9$k!#(Bsize $B$O!"(Bvalue$B$NNN0h$N%G!<%??t(B ( $B%o!<%I?t$^$?$O%O!<%U%o!<%I?t(B ) $B$r;XDj$9$k!#(B $B3JG<$5$l$k(B value $B$NFbMF!"$*$h$S4X?tCM$N0UL#$O%Q!<%D$N%?%$%W$K$h$C$F0[$J$k!#(B

$B%F%-%9%H%\%C%/%9!?%7!<%/%l%C%H%F%-%9%H%\%C%/%9(B

  • $B8=:_$NJ8;zNs$r(B (TC*) value $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B size $B$O$=$NNN0h$N%O!<%U%o!<%I?t(B ( $BJ8;z?t(B ) $B$r<($7!"(B $BNN0h$,ITB-$7$?>l9g$O@hF,$+$i(B ( size - 1 ) $BJ8;z$N$_$,3JG<$5$l!"(B $B:G8e$K(B TNULL $B$,3JG<$5$l$k!#(B $B4X?tCM$H$7$F3JG<$5$l$?J8;zNsD9$,La$k!#(B
  • size$B!e(B0$B!"$^$?$O(B value=NULL $B$N>l9g$O!"(B $BJ8;zNs$N

    $B?tCM%\%C%/%9(B

    • cv $B$NCM$rvalue $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B size $B$O$=$NNN0h$N%o!<%I?t$r<($7!"(B $BNN0h$,ITB-$7$?>l9g$O!"$=$N(B size $BJ,$@$13JG<$5$l$k!#(B
      $B4X?tCM$H$7$F0J2<$K<($9CM(B($BA4BN$N%o!<%I?t(B)$B$,La$k!#(B
              1  -- $B@0?t$N>l9g(B (32$B%S%C%H(B)
              2  -- $Bl9g(B (64$B%S%C%HIbF0>.?tE@(B)
      
    • size $B!e(B 0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"(B $BCM$N

      $B%7%j%"%k%\%C%/%9(B

      • $B3F%U%#!<%k%I$N(B cv $BCM$r=gHV$Kvalue $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B size $B$O$=$NNN0h$N%o!<%I?t$r<($7!"(B $BNN0h$,ITB-$7$?>l9g$O!"$=$N(B size $BJ,$@$13JG<$5$l$k!#(B $B4X?tCM$H$7$FA4BN$N%o!<%I?t(B ( $B%U%#!<%k%I?t(B ) $B$,La$k!#(B
      • size$B!e(B0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"(B $BCM$N

        $B%F%-%9%H!?%T%/%H%0%i%`%*%k%?%M!<%H!?%b!<%a%s%?%j%9%$%C%A(B

        $B%9%$%C%A%;%l%/%?!?%9%/%m!<%k%;%l%/%?(B

        • $B8=:_CM$rvalue $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B $B8=:_CM$O>o$K(B 1 $B%o!<%I$G$"$k$?$a!"(Bsize $B$ODL>o(B 1 $B$H$9$k!#(B $B4X?tCM$H$7$F8=:_CM$,La$k!#(B
        • $B%b!<%a%s%?%j%9%$%C%A$N>l9g$O!"CM$O>o$K(B 0 $B$G$"$j0UL#$,$J$$!#(B
        • size$B!e(B0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"(B $BCM$N$B%9%/%m!<%k%;%l%/%?$N>l9g$O!"(Bsize = 2,3 $B$H$9$k$H!"(B value $B$K$O!"0J2<$NCM$,3JG<$5$l$k!#(B
                  value[0] : $B8=:_CM(B                               (size > 0$B$N;~(B)
                  value[1] : $BI=<($5$l$F$$$kA*Br;h$N?t(B             (size > 1$B$N;~(B)
                  value[2] : $B0lHV>e$KI=<($5$l$F$$$kA*Br;h$NHV9f(B   (size > 2$B$N;~(B)
          
        $B%\%j%e!<%`(B
        • clo, chi, lo, hi $B$NCM$r=gHV$Kvalue $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B size $B$O$=$NNN0h$N%o!<%I?t$r<($7!"(B $BNN0h$,ITB-$7$?>l9g$O!"(B $B$=$N(B size $BJ,$@$13JG<$5$l$k!#(B $B4X?tCM$H$7$F$O!"A4BN$N%o!<%I?t(B ( = 4 ) $B$,La$k!#(B
        • size$B!e(B0$B!"(B $B$^$?$O(B value = NULL $B$N>l9g$O!"(B $BCM$N

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(value)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          
          cset_val
           
          $B%Q!<%D$NCM$N@_Dj(B

          $B!Z7A<0![(B

          W   cset_val(W pid, W size, W *value)
          

          $B!Z%Q%i%a!<%?![(B

          W   pid $B%Q!<%D(BID
          W   size    value $B$N%5%$%:(B
          W   *value  $B@_DjCM$r3JG<$7$?G[Ns(B
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B($B4X?tCM$O@_Dj$7$?%o!<%I?t(B)
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid
          $B$G;XDj$7$?%Q!<%D$N8=:_CM$r(B
          *value
          $B$G;XDj$7$?CM$KJQ99$7!"(B $B%Q!<%D$,!VI=<(>uBV!W$N;~$O!":FI=<($r9T$J$&!#(B

          size $B$O!"@_Dj$9$k%G!<%??t(B ( $B%o!<%I?t$^$?$O%O!<%U%o!<%I?t(B ) $B$r;XDj$9$k!#(B $B@_Dj$9$k8=:_CM$NFbMF!"(B $B$*$h$S4X?tCM$N0UL#$O%Q!<%D$N%?%$%W$K$h$C$F0[$J$k!#(B

          $B%F%-%9%H%\%C%/%9!?%7!<%/%l%C%H%F%-%9%H%\%C%/%9(B

          • value $B$G;XDj$7$?NN0h$K3JG<$5$l$F$$$kJ8;zNs$r@_Dj$9$k!#(B size $B$*$h$S4X?tCM$O%O!<%U%o!<%IC10L$G$"$k!#(B $B@_Dj$5$l$kJ8;zNs$O(B TNULL $B$G=*N;$9$k$+!"(B $B$^$?$O(B size $BJ8;z?t$^$G$G$"$j!"(B $B:GBgJ8;z?t(B ( txsize ) $B$h$jBg$-$$>l9g!"(B $B8e$m$O@Z$jTNULL $B$r=|$$$?J8;z?t(B)$B$,(B $B4X?tCM$H$7$FLa$k!#(B
          • size$B!e(B0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"(B $B6uJ8;zNs$N@_Dj$H$J$j!"4X?tCM$H$7$F(B 0 $B$,La$k!#(B

          $B?tCM%\%C%/%9(B

          • value $B$G;XDj$7$?NN0h$K3JG<$5$l$F$$$k(B cv $B$NCM$r@_Dj$9$k!#(B size$B$*$h$S4X?tCM$O(B W $BC10L$G$"$j!"(B $B@0?t7?$N>l9g$O(B1$B!"l9g$O(B2$B$K$J$k!#(B size $B$,I,MW$J%o!<%I?t$h$j>/$J$$>l9g!"(B $B$^$?$O(B value = NULL $B$N>l9g$O!"(B $B2?$b@_Dj$5$l$:!"(B $B4X?tCM$H$7$F(B 0 $B$,La$k!#(B $B$^$?(B size $B$,Bg$-$9$.$k>l9g$OI,MW$JJ,$N$_@_Dj$5$l$k!#(B

          $B%7%j%"%k%\%C%/%9(B

          • value $B$G;XDj$7$?NN0h$K=gHV$K3JG<$5$l$F$$$k3F%U%#!<%k%I$N(B cv $BCM$r@_Dj$9$k!#(B size $B$*$h$S4X?tCM$O(BW$BC10L$G$"$k!#(B size $B$,I,MW$J%o!<%I?t$h$j>/$J$$>l9g!"(B $B$=$NJ,$N$_@_Dj$5$l!"$C$F!"(Bsize $B$NCM$K$h$C$F$O0lIt$N%U%#!<%k%I$NCM$N$_$N@_Dj$b2DG=$G$"$k(B ($BC"$7!"@hF,$N%U%#!<%k%I$+$i(B)$B!#(B
          • size$B!e(B0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"2?$b@_Dj$5$l$:!"(B $B4X?tCM$H$7$F(B0$B$,La$k!#$^$?(B size $B$,Bg$-$9$.$k>l9g$OI,MW$JJ,$N$_@_Dj$5$l$k!#(B

          $B%F%-%9%H!?%T%/%H%0%i%`%*%k%?%M!<%H!?%b!<%a%s%?%j%9%$%C%A(B

          $B%9%$%C%A%;%l%/%?!?%9%/%m!<%k%;%l%/%?(B

          • *value $B$G;XDj$7$?CM$r8=:_CM$H$7$F@_Dj$9$k!#(B size$B$*$h$S4X?tCM$O(B W $BC10L$G$"$k!#(B $B4X?tCM$H$7$F$O!"(B1 $B$,La$k!#(B
          • size$B!e(B0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"(B $B2?$b@_Dj$5$l$:!"(B $B4X?tCM$H$7$F(B 0 $B$,La$k!#$^$?(B size $B$,Bg$-$9$.$k>l9g$OI,MW$JJ,$N$_@_Dj$5$l$k!#(B
          • $B%9%/%m!<%k%;%l%/%?$N>l9g!"0J2<$NF0:n$H$J$k!#(B
            • size = 1 $B$N>l9g$O!"(Bvalue[0] $B$NCM$r8=:_CM$H$7$F@_Dj$7!"(B $B@_Dj$7$?8=:_CM$,8+$($k$h$&$K:GDc8B$N%9%/%m!<%k$r9T$J$&!#(B $B$^$?!"(BP_NOSEL $B$G8=:_CM$,(B 0 $B$N>l9g$O!"(B $B%$%s%8%1!<%?$N>C5n$N$_$r9T$J$&!#(B
            • size = 2$B$N>l9g$O!"(B value[0] $B$NCM$r8=:_CM$H$7$F@_Dj$7!"(B value[1] $B$G;XDj$7$?0LCV$K@_Dj$7$?8=:_CM$,8+$($k$h$&$K%9%/%m!<%k$r9T$J$&!#(B value[1] $B$G;XDj$9$kCM$O!"(B0 $B$,0lHV>e$G!"I=<($G$-$kA*Br;h$N?t(B -1 $B$,0lHV2<$H$J$k!#(B value[1] $B$NCM$,%l%s%8$rD6$($F$$$k>l9g$O!"(B $B$=$l$>$l(B 0 $B$^$?$O:GBgCM$H8+$J$5$l$k!#(B $B$^$?!"8=:_CM$,(B 0 $B$N>l9g!"(Bvalue[1] $B$O!"(B $B@hF,$KI=<($9$k9`L\HV9f$rI=$9!#(B $B$3$l$O!"%-!l9g!"(B $B;HMQ$9$k!#(B

          $B%\%j%e!<%`(B

          • value$B$G;XDj$7$?NN0h$K=gHV$K3JG<$5$l$F$$$k(B clo, chi, lo, hi $B$NCM$r@_Dj$9$k!#(Bsize $B$*$h$S4X?tCM$O(BW$BC10L$G$"$k!#(B size $B$,I,MW$J%o!<%I?t$h$j>/$J$$>l9g!"(B $B$=$NJ,$N$_@_Dj$5$l!"(B $B$C$F!"(Bsize $B$NCM$K$h$C$F$O(B clo, chi $B$N$_$N@_Dj$b2DG=$H$J$k!#(B
          • size$B!e(B0$B!"$^$?$O(B value = NULL $B$N>l9g$O!"(B $B2?$b@_Dj$5$l$:!"4X?tCM$H$7$F(B 0 $B$,La$k!#(B $B$^$?(B size $B$,Bg$-$9$.$k>l9g$OI,MW$JJ,$N$_@_Dj$5$l$k!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(value)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B($B@_DjCM$,HO0O30(B)$B!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          
          cget_dat
           
          $B%Q!<%D$N%G!<%?

          $B!Z7A<0![(B

          ERR cget_dat(W pid, W *par)
          

          $B!Z%Q%i%a!<%?![(B

          W   pid $B%Q!<%D(BID
          W   *par    $B%Q!<%D%G!<%?3JG
          
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$N%G!<%?$rpar $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B $B
          $B%F%-%9%H%\%C%/%9(B (W) txsize
          $B%7!<%/%l%C%H%F%-%9%H%\%C%/%9(B (W) txsize
          $B?tCM%\%C%/%9(B (UW) fmt
          $B%7%j%"%k%\%C%/%9(B (TC*) fmt
          $B%F%-%9%H%*%k%?%M!<%H%9%$%C%A(B (TC*) name
          $B%F%-%9%H%b!<%a%s%?%j%9%$%C%A(B (TC*) name
          $B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A(B(W) onpat(par[0]), offpat(par[1])
          $B%T%/%H%0%i%`%b!<%a%s%?%j%9%$%C%A(B(W) onpat
          $B%9%$%C%A%;%l%/%?(B (TC*) name
          $B%9%/%m!<%k%;%l%/%?(B (TC*) name
          $B%\%j%e!<%`(B (W) patnum

          (TC*) fmt $B$H(B (TC*) name $B$N>l9g$O!"(B $B%]%$%s%?$N@\$OF@$i$l$J$$!#(B

          $B!Z4X?t%j%?!<%sCM![(B

          = 0 (E_OK) : $B@5>o=*N;(B
          < 0  : $B%(%i!<(B  ($B4X?tCM$O%(%i!<%3!<%I(B)
          
          cset_dat
           
          $B%Q!<%D$N%G!<%?@_Dj(B

          $B!Z7A<0![(B

          ERR cset_dat(W pid, W par)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   pid    $B%Q!<%D(BID
          W   par    $B%Q!<%D%G!<%?(B(PA_PARTS $B$N>l9g$O(B W*)
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$N%G!<%?$r!"(Bpar $B$G;XDj$7$?CM$KJQ99$7!"(B $B%Q!<%D$,!VI=<(>uBV!W$N>l9g$O:FI=<($r9T$J$&!#(B $B@_Dj$5$l$k%G!<%?$O!"%Q!<%D$N%?%$%W$K$h$C$F0[$J$k!#(B

          $B%F%-%9%H%\%C%/%9(B (W) txsize
          $B%7!<%/%l%C%H%F%-%9%H%\%C%/%9(B (W) txsize
          $B?tCM%\%C%/%9(B (UW) fmt
          $B%7%j%"%k%\%C%/%9(B (TC*) fmt
          $B%F%-%9%H%*%k%?%M!<%H%9%$%C%A(B (TC*) name
          $B%F%-%9%H%b!<%a%s%?%j%9%$%C%A(B (TC*) name
          $B%T%/%H%0%i%`%*%k%?%M!<%H%9%$%C%A(B(W*) onpat(par[0]), offpat(par[1])
          $B%T%/%H%0%i%`%b!<%a%s%?%j%9%$%C%A(B(W) onpat
          $B%9%$%C%A%;%l%/%?(B (TC*) name
          $B%9%/%m!<%k%;%l%/%?(B (TC*) name
          $B%\%j%e!<%`(B (W) patnum

          (TC*) fmt $B$H(B (TC*) name $B$N>l9g$O!"(B $B%]%$%s%?$N@_Dj$G$"$k!#(Bfmt, name $B$G;XDj$5$l$kJ8;zNs$NFbMF$rD>@\JQ99$7!"(B fmt, name $B<+BN$NCM$,JQ2=$7$F$$$J$$>l9g$G$b!"(B cset_dat()$B$r9T$J$o$J$$8B$jJQ99$NH?1G$OJ]>Z$5$l$J$$!#(B

          $B%7%j%"%k%\%C%/%9$N(B fmt$B$rJQ99$7$F$b!"(B $B9`L\$NCM$d9`L\Am?t$O8=:_$N$^$^$H$J$k!#(B $B$3$N$?$a!"8=:_$N9`L\$NCM$,?7$7$$(B fmt $B$KE,MQ$G$-$J$$>l9g$d!"(B $B9`L\Am?t$,8=:_$HF1$8$G$J$$>l9g$O!"(B EX_PAR $B$N%(%i!<$K$J$j!"(B fmt$B$OJQ99$5$l$J$$!#(B

          $B!Z4X?t%j%?!<%sCM![(B

          = 0 (E_OK) : $B@5>o=*N;(B
          < 0  : $B%(%i!<(B  ($B4X?tCM$O%(%i!<%3!<%I(B)
          

          $B!Z%(%i!<%3!<%I![(B

          EX_DNUM : $B%G!<%?(B(onpat,offpat,patnum)$B$O%G!<%?%^%M!<%8%c$KEPO?$5$l$F$$$J$$!#(B
          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          
          ccut_txt
           
          $B%Q!<%D$NA*BrNN0h$N

          $B!Z7A<0![(B

          W   ccut_txt(W pid, W size, TC *buff, W cut)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   pid     $B%Q!<%D(BID
          W   size    buff $B$NJ8;z?t(B
          TC  *buff   $BJ8;zNs
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B($B4X?tCM$OA*BrNN0h$NJ8;z?t(B)
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%F%-%9%H(B / $B?tCM%\%C%/%9$NA*BrNN0h$NJ8;zNs$rbuff $B$G;XDj$7$?NN0h$K3JG<$7!"A*BrNN0hA4BN$NJ8;z?t$r4X?tCM$H$7$FLa$9!#(B

          size $B$O(B buff $B$G;XDj$7$?NN0h$NJ8;z?t$N;XDj$G$"$j!"(B $BNN0h$,ITB-$7$?>l9g$O@hF,$+$i(B ( size - 1 )$BJ8;z$N$_$,3JG<$5$l!"(B $B:G8e$K(B TNULL $B$,3JG<$5$l$k!#(B

          $BA*BrNN0h$,%L%k$N>l9g$O!"(Bbuff $B$K$O6uJ8;zNs!"(B $BB($A!"(B*buff $B$K(B TNULL $B$,@_Dj$5$l!"(B $B4X?tCM$H$7$F(B 0 $B$,La$k!#(B

          cut = 0$B$N>l9g$O!"(B $Bcut != 0 $B$N>l9g$O:o=|$9$k!#(B

          buff = NULL $B$N>l9g$O!"3JG<$O9T$J$o$J$$$,!"(B $BA*BrNN0hA4BN$NJ8;z?t$,4X?tCM$H$7$FLa$k!#(B $B$3$N>l9g$O!"(Bcut $B$OL5;k$5$l!"A*BrNN0h$,:o=|$5$l$k$3$H$O$J$$!#(B

          $B$J$*!"%\%C%/%9$,!VI=<(>uBV!W$N;~$O!"(B $B:FI=<($,9T$J$o$l$k!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(buff)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B(size $B$,IT@5(B)$B!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$(B($B%F%-%9%H!??tCM%\%C%/%9$G$O$J$$(B)$B!#(B
          
          cins_txt
           
          $B%Q!<%D$NA*BrNN0h$NA^F~(B

          $B!Z7A<0![(B

          W   cins_txt(W pid, PNT pos, TC *buff)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   pid     $B%Q!<%D(BID
          PNT pos     $BA^F~0LCV(B
          TC  *buff   $BA^F~J8;zNs(B
          
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B($B4X?tCM$OA4BN$NJ8;z?t(B)
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%F%-%9%H(B / $B?tCM%\%C%/%9$N(B pos $B$G;XDj$7$?0LCV$K!"(B buff $B$G;XDj$7$?NN0h$K3JG<$5$l$F$$$kJ8;zNs(B ($B:G8e$O(B TNULL) $B$rA^F~$7!"(B $B$=$N%\%C%/%9$r!VF~NO>uBV!W$H$7!"(B $BA^F~$7$?J8;zNs$r?7$?$JA*BrNN0h$H$9$k!#(B

          pos $B$O%&%#%s%I%&(B / $B%Q%M%k$NAjBP:BI8$G;XDj$5$l$k!#(B $BA^F~$7$?7k2L!":GBg$NJ8;z?t$rD6$($?>l9g$O!"(B $B8e$m$O@Z$j

          pos $B$H$7$F(B {0x8000, 0x8000} $B$r;XDj$9$k$3$H$G!"(B buff$B$G;XDj$7$?J8;zNs$K$h$C$FA*BrNN0h$rCV49$9$k$3$H$,$G$-$k!#(B $B$3$l$O!"%a%K%e!<$K$h$k%H%l!

          $B$J$*!"%Q!<%D$,!VI=<(>uBV!W$N;~$O!":FI=<($,9T$J$o$l$k!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(buff)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B($BA^F~%F%-%9%H!?A^F~0LCV$,IT@5(B)$B!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$(B($B%F%-%9%H!??tCM%\%C%/%9$G$O$J$$(B)$B!#(B
          
          cget_pos
           
          $B%Q!<%D$N0LCV$N

          $B!Z7A<0![(B

          ERR cget_pos(W pid, RECT *r)
          
          

          $B!Z%Q%i%a!<%?![(B

          W       pid $B%Q!<%D(BID
          RECT    *r  $B%Q!<%D0LCV6k7A(B
          
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$N8=:_$NI=<(NN0h$rr $B$G;XDj$7$?NN0h$K3JG<$9$k!#(B $B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(r)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          
          cset_pos
           
          $B%Q!<%D$N0LCV$N@_Dj(B

          $B!Z7A<0![(B

          ERR cset_pos(W pid, RECT *r)
          
          

          $B!Z%Q%i%a!<%?![(B

          W       pid $B%Q!<%D(BID
          RECT    *r  $B%Q!<%D0LCV6k7A(B
          
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$NI=<(NN0h$r(B r $B$G;XDj$7$?NN0h$KJQ99$9$k!#(B $B$3$l$O!"0LCV$N0\F0$HBg$-$5$NN>J}$NJQ99$H$J$k!#(B r $B$O!"$=$N%Q!<%D$NB0$9$k%&%#%s%I%&(B / $B%Q%M%k$NAjBP:BI8$G;XDj$9$k!#(B

          $B%Q!<%D$,!VI=<(>uBV!W$N>l9g$O!"?7$7$$NN0h$K:FI=<($5$l$k$,!"(B $B85$NNN0h$NI=<($K4X$7$F$O2?$b9T$J$o$J$$!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(r)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B($B;XDj6k7ACM$,IT@5(B)$B!#(B
          
          cget_sts
           
          $B%Q!<%D$N>uBV$N

          $B!Z7A<0![(B

          W   cget_sts(W pid, W *wid)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   pid $B%Q!<%D(BID
          W   *wid    $B%&%#%s%I%&(BID$B3JG
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B($B4X?tCM$O%Q!<%D$N%?%$%W!?B0@-!?>uBV(B)
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$,B0$9$k%&%#%s%I%&!?%Q%M%k(BID$B$rwid $B$G;XDj$7$?NN0h$K3JG<$7!"%Q!<%D$N%?%$%W!?B0@-!?>uBV%o!<%I(B ($B?^(B79 $B%Q!<%D$N%?%$%W!?B0@-!?>uBV(B$B;2>H(B) $B$r4X?tCM$H$7$FLa$9!#(B

          wid=NULL $B$N>l9g$O!"%&%#%s%I%&(B / $B%Q%M%k(BID$B$OLa$5$l$J$$!#(B

          $B$^$?!"I=<(B0@-$N%S%C%H$O>o$K(B 0 $B$H$J$C$F$$$k(B($BEPO?;~$N$_M-8z(B)$B!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(wid)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          
          cchg_par
           
          $B%Q!<%D$N>uBV$NJQ99(B

          $B!Z7A<0![(B

          ERR cchg_par(W pid, UW cmd)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   pid     $B%Q!<%D(BID
          UW  cmd     cmd $B$O0J2<$N(B4$BuBV;XDj$NG$0U$NAH9g$;(B (OR) $B$H$J$k!#(B
          
          P_EMPHAS / P_NORMAL-- $B6/D4OH(B / $BDL>oOH(B
          P_NOFRAME / P_FRAME -- $BOHL5$7(B / $BOHM-$j(B
          P_DISABLE / P_ENABLE-- $BA`:n6X;_(B / $BA`:n5v2D(B
          P_INACT / P_ACT -- $BITG=>uBV(B / $B2DG=>uBV(B

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$N>uBV$r!"(B cmd $B$G;XDj$7$?FbMF$KJQ99$9$k!#(B

          $B%Q!<%D$,!VI=<(>uBV!W$N;~$O!":FI=<($,9T$J$o$l$k!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B(cmd$B$,IT@5!'(BP_EMPHAS$B$H(BP_NORMAL$B$NAH$_9g$o$;Ey(B)$B!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          
          cchg_pwd
           
          $B%&%#%s%I%&Fb%Q!<%D$N>uBV$NJQ99(B

          $B!Z7A<0![(B

          ERR cchg_pwd(W wid, UW cmd)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   wid $B%&%#%s%I%&(BID
          W   cmd cchg_par() $B$N>l9g$HF1$8!#(B
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          wid $B$G;XDj$7$?%&%#%s%I%&!?%Q%M%k$KB0$9$kA4$F$N%Q!<%D$N>uBV$r!"(B cmd $B$G;XDj$7$?FbMF$KJQ99$9$k!#(B $BC"$7!"(BP_SBAR = 1 $B$NB0@-$r;}$D!"%\%j%e!<%`$OBP>]30$H$J$k!#(B

          $B%Q!<%D$,!VI=<(>uBV!W$N;~$O!":FI=<($,9T$J$o$l$k!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_PAR  : $B%Q%i%a!<%?$,IT@5$G$"$k(B(cmd$B$,IT@5!'(BP_EMPHAS$B$H(BP_NORMAL$B$NAH$_9g$o$;Ey(B)$B!#(B
          EX_WID  : $B%&%#%s%I%&(B(wid)$B$OB8:_$7$F$$$J$$!#(B
          
          cidl_par
           
          $B%Q!<%D$NDj>o=hM}(B

          $B!Z7A<0![(B

          ERR cidl_par(W wid, PNT *pos)
          
          

          $B!Z%Q%i%a!<%?![(B

          W   wid     $B%&%#%s%I%&(BID
          PNT *pos    $B%]%$%s%?0LCV:BI8(B
          
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B
          $B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)
          

          $B!Z2r@b![(B

          wid $B$G;XDj$7$?%&%#%s%I%&!?%Q%M%k$KB0$9$k$9$Y$F$N%Q!<%D$KBP$7$F$NDj>o=hM}$r9T$J$&!#(B $B$3$N>l9g!"(BP_SBAR = 1 $B$NB0@-$N%\%j%e!<%`$bBP>]$H$J$k!#(B $B;XDj$7$?%&%#%s%I%&$,!"(B $BF~NOuBV$G$J$$>l9g$O!"2?$b$7$J$$!#(B

          *pos $B$O!"$=$N;~E@$N%]%$%s%?$N(B wid $B$G;XDj$7$?%&%#%s%I%&$NAjBP:BI80LCV$G$"$j!"(B $B%]%$%s%?$N7A>uJQ99$K;HMQ$5$l$k!#(Bpos = NULL $B$H$9$l$P%]%$%s%?$N7A>uJQ99$r9T$J$o$J$$$,!"(B $BDL>o(B 1 $B$D$G$b%Q!<%D$rM-$9$k%&%#%s%I%&(B / $B%Q%M%k$O(B pos != NULL $B$G!"$3$N4X?t$r%3!<%k$9$kI,MW$,$"$k!#(B

          $BDj>o=hM}$H$O0J2<$K<($9FbMF$N$b$N$G$"$k!#(B

          • $B!VE@LG!W>uBV$N%Q!<%D$KBP$7$F!"E@LG$N<~4|$KC#$7$F$$$?>l9g$KI=<($r99?7$7$FE@LG$r9T$J$&!#(B
          • $B%\%C%/%9%Q!<%D$K$*$$$F!"A*BrNN0h$N!V$A$i$D$-OH!W$,I=<($5$l$F$$$?>l9g!"(B $B$A$i$D$-=hM}$r9T$J$&!#$^$?$O!VJ8;z%+!<%=%k!W$,I=<($5$l$F$$$?>l9g!"$=$NE@LG=hM}$r9T$J$&!#(B
          • $B%a%K%e!<%\%?%s$^$?$O!"!V@)8f!W%-!<2!2pos $B$,(B NULL $B$G$J$$>l9g!"(Bpos $B$G<($5$l$?0LCV$K1~$8$F!"(B $B%]%$%s%?$N7A>u$N99?7$r9T$J$&(B($B!V2DG=>uBV!W!"!V5v2D>uBV!W$+$D!VI=<(>uBV!W$N%Q!<%D$,BP>]$H$J$k(B)$B!#(B
                    $B%\%j%e!<%`!?%9%/%m!<%k%;%l%/%?$N%N%VItJ,$N>l9g(B
                        -- $B=D!"$^$?$O2#$N!V0\F0l9g(B
                        -- $B]%Q!<%D>e$G>e5-0J30$N>l9g(B
                        -- $B!VA*Br;X!W(B
                    $BBP>]%Q!<%D>e$K$J$$>l9g(B
                        --  $BJQ99$7$J$$(B
            
          $B4X?tCM$H$7$F0J2<$N0UL#$r;}$C$F$$$k(B
          1:
          $B%]%$%s%?7A>u$r%Q!<%D%^%M!<%8%c$,94B+$7$F$$$k>l9g(B ($B;XDj0LCV$,%Q!<%D>e$G!"%Q!<%D%^%M!<%8%c$,%]%$%s%?7A>u$r99?7$7$F$$$k$+!"(B $B%a%K%e!<%\%?%s$^$?$O!"(B[$BL?Na(B]$B%-!<$,2!$5$l$F$$$k(B)
          0:
          $B%"%W%j%1!<%7%g%s$K%]%$%s%?7A>u$N99?7$r5v2D$7$F$$$k>l9g(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(pos)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_WID  : $B%&%#%s%I%&(B(wid)$B$OB8:_$7$F$$$J$$!#(B
          
          cexe_par
           
          $B%Q!<%D$NC1%$%Y%s%H

          $B!Z7A<0![(B

          W   cexe_par(W pid, WEVENT *ev)
          
          

          $B!Z%Q%i%a!<%?![(B

          W       pid    $B%Q!<%D(BID
          WEVENT  *ev    $B=hM}$9$k%$%Y%s%H(B
          
          

          $B!Z%j%?!<%sCM![(B

          $B!f(B0    $B@5>o(B($B4X?tCM2<0L(B16bit): 01PC SSSS SSSS SSSS
          
                      P = 0: $B=hM}$N=*N;(B
                        = 1: $B=hM}$NCfCG(B
                      C = 0: $B8=:_CM(B/$B>uBV$NJQ2=L5$7(B
                        = 1: $B8=:_CM(B/$B>uBV$NJQ2=M-$j(B
                      S     : $B3F
          

          $B!Z2r@b![(B

          pid $B$G;XDj$7$?%Q!<%D$N8GM-$NF0:n$r$*$3$J$&!#(B *ev $B$O%Q!<%D$,=hM}$9$k%&%#%s%I%&%$%Y%s%H$G$"$k!#(B $B%F%-%9%H%\%C%/%9%7!<%/%l%C%H%F%-%9%H%\%C%/%9?tCM%\%C%/%9%7%j%"%k%\%C%/%9(B ($B0J2l9g$K$b%Q!<%DFb$G%$%Y%s%HBT$A$K$J$i$J$$$N$r=|$$$F!"(B cact_par $B$HF1$85!G=$r;}$D!#(B

          $B%\%C%/%9%Q!<%D$rl9g!"(B $BHO0OA*Br$J$I$N%I%i%C%0A`:nCf$O(B cact_par $B$HF1$8$K%$%Y%s%H$,ev $B$K(B EV_NULL $B$r3JG<$7$F(B P_EVENT $B$rJV$9(B ($BDL>o$O!"(BP_EVENT $B$G(B EV_NULL $B$,@_Dj$5$l$k$3$H$O$J$$(B)$B!#(B $B$3$N>l9g!"%"%W%j%1!<%7%g%s$O(B wget_evt $B$K$h$C$F?7$?$J%&%#%s%I%&%$%Y%s%H$rcexe_par $B$KEO$9I,MW$,$"$k(B($B%$%Y%s%H$r@5$7$/EO$5$J$+$C$?>l9g$NF0:n$OJ]>Z$5$l$J$$(B)$B!#(B $B$J$*!"(BP_EVENT $B$,F@$i$l$?>l9g$G(B EV_NULL $B$G$J$+$C$?>l9g$O!"(Bcact_par $B$HF1MM$K%$%Y%s%H$r=hM}$7!"(B ev $B$K(B EV_NULL $B$r3JG<$7$F:FEY(B cexe_par $B$r8F$VI,MW$,$"$k!#(B

          $B!Z%(%i!<%3!<%I![(B

          EX_ADR  : $B%"%I%l%9(B(ev)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
          EX_PID  : $B%Q!<%D(B(pid)$B$OB8:_$7$F$$$J$$!#(B
          

          $B$3$N>O$NL\
          $BA0JG(B:3.2 $B%a%K%e!<%^%M!<%8%c$K$b$I$k(B
          $B