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*$K%&%#%s%I%&$HF1MM$K2

$B%Q%M%k$N0lHLE*$J6-3&@~(B
$B?^(B 97 : $B%Q%M%k$N0lHLE*$J6-3&@~(B

$B%Q%M%k$NFbIt$K$ODL>o!"6/D4MQ$NFbOH$rI=<($9$k!#(B $BFbOH$O!"%Q%M%k$N6-3&@~$NFbB&$K69$$7d4V$r3+$1$FIA$+$l$k!"(B $B6-3&@~$h$jB@$$OH$G$"$k!#$J$*!"6-3&@~$N$3$H$r30OH$H$b8F$V!#(B

$BFbOH$H$7$F$OG$0U$N%Q%?!<%s$,;XDj2DG=$G$"$k$,!"(B $BDL>o$O%Q%M%k$NMQES$K1~$8$F!VDL>o%Q%M%k!W!V7Y9p%Q%M%k!W!V=EBg7Y9p%Q%M%k!W$N(B 3 $B

$BFbOH$NFbB&$,%Q%M%k$N:n6HNN0h$G$"$j!"(B $B$=$NI=<(FbMF$O%"%W%j%1!<%7%g%s$K0MB8$7!"(B $B3Fo$O%Q%M%k$NA`:n$r=*N;$9$k$?$a$N%b!<%a%s%?%j%9%$%C%A$,B8:_$9$k!#(B

$B%Q%M%k$N0lHLE*$J7A>u(B
$B?^(B 98 : $B%Q%M%k$N0lHLE*$J7A>u(B

$B%Q%M%k$NI=<($K4X$9$k0J2<$N9`L\$O!"%Q%M%k$N@8@.;~$K;XDj$9$k$3$H$,$G$-$k!#(B

3.4.1.5 $B%Q%M%k$N%G!<%?9=B$(B

$B%Q%M%k$NA4BN9=B$(B

$B%Q%M%k$O0J2<$N%G!<%?9=B$$K$h$jDj5A$5$l$k!#(B

    typedef struct panel {
        UW  oframe;     /* $B6-3&@~(B($B30OH(B)$B$NB0@-(B */
        UW  iframe;     /* $BFbOH$NB0@-(B */
        W   bgpat;      /* $BGX7J%Q%?!<%s(B */
        RECT    r;      /* $BI=<(NN0h(B */
        W   defsw;      /* $B%G%U%)!<%k%H%9%$%C%AHV9f(B */
        W   nitem;      /* $B9`L\?t(B */
        PNL_ITEM *item; /* $B9`L\G[Ns$X$N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%G%C%/%9(B + 1 ( 1 $B!A(B nitem ) $B$G$"$k9`L\HV9f$G<1JL$5$l$k!#(B
$B%Q%M%k$N9`L\$N9=B$(B

$B%Q%M%[email protected]`L\(B ( PNL_ITEM ) $B$O!"(B $B0J2<$N$h$&$KDj5A$5$l$k!#(B

    typedef struct pnl_item {
        UW  itype;      /* $B9`L\%?%$%W(B */
        UW  info;       /* $B3FpJs(B */
        RECT    ir;     /* $BI=<(NN0h(B */
        W   desc;       /* $BFbIt%G%#%9%/%j%W%?(B */
        W   dnum;       /* $B%G!<%?HV9f(B */
        H   *ptr;       /* $B%G!<%?%]%$%s%?(B */
    } PNL_ITEM;
itype:
$B9`L\$N%?%$%W$r;XDj$9$k0J2<$N$$$:$l$+$NCM$G$"$j!"(B $B$3$NCM$O%G!<%?%^%M!<%8%c$N%G!<%?%?%$%W$K(B 1 $BBP(B 1 $B$KBP1~$7$F$$$k!#(B
NULL_ITEM 0-- $B6u9`L\(B
PTR_ITEM 1-- $B%]%$%s%?%$%a!<%8(B
PICT_ITEM 2-- $B%T%/%H%0%i%`%$%a!<%8(B
PAT_ITEM 3-- $B%Q%?!<%s%$%a!<%8(B
BMAP_ITEM 4-- $B%S%C%H%^%C%W%$%a!<%8(B
5-- $BM=Ls(B
TEXT_ITEM 6-- $BJ8;zNs(B
PARTS_ITEM 7-- $B%3%s%H%m!<%k%Q!<%D(B
ACT_ITEM 0x80-- $BF0:n9`L\(B( PD $B%W%l%9$NDLCN(B)
ATR_TEXT 0x20-- $BB0@-IU$-J8;zNs(B
$B"((B
ACT_ITEM, ATR_TEXT $B$N;XDj$O>e5-9`L\%?%$%W$K(B OR $B$G;XDj$5$l$k!#(B

ATR_TEXT $B;XDj$O(B TEXT_ITEM $B$KBP$7$F$N$_E,MQ$5$l!"(B $B$=$NJ8;zNs9`L\$,B0@-%G!<%?$r4^$s$G$$$k$3$H$r0UL#$9$k!#(B

$B%3%s%H%m!<%k%Q!<%D0J30$OI=<($N$_$N9`L\$G$"$j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%k%^%M!<%8%c$GMQ0U$5$l$F$$$kI8=`%Q%M%kF0:n4X?t(B (pact_pnl)$B$r;HMQ$9$k!#(B
$B$3$N>l9g!"%Q%M%k%^%M!<%8%c$,%$%Y%s%H$r=g

$BDL>o$O!"(B(2)$B$NJ}K!$rMQ$$$k$,!"%$%Y%s%H$KBP$9$kFCl9g$O!"(B (1)$B$NJ}K!$r;HMQ$9$k$3$H$K$J$k!#(B

3.4.2 $B%G!<%?!?Dj?t$NDj5A(B

$B""(B $B%Q%M%k(BID

typedef W       PNID;   /* $B%Q%M%k(BID */

$B""(B $B9`L\%?%$%W(B

#define NULL_ITEM   0   /* $BL5$7(B */
#define PTR_ITEM    1   /* $B%]%$%s%?(B */
#define PICT_ITEM   2   /* $B%T%/%H%0%i%`(B */
#define PAT_ITEM    3   /* $B%Q%?!<%s(B */
#define BMAP_ITEM   4   /* $B%S%C%H%^%C%W(B */
#define FIG_ITEM    5
#define TEXT_ITEM   6   /* $BJ8;zNs(B (1$B9T(B) */
#define PARTS_ITEM  7   /* $B%3%s%H%m!<%k%Q!<%D(B */
#define ACT_ITEM    0x80    /* $BF0:n9`L\(B($B>e5-9`L\$K(BOR$B$G;XDj(B) */
#define BLT_TEXT    0x40
#define ATR_TEXT    0x20    /* $BB0@-IU$-J8;zNs(B($B>e5-9`L\$K(BOR$B$G;XDj(B) */

$B""(B $B%Q%M%k9`L\(B

typedef struct pnl_item {
    UW  itype;      /* $B9`L\%?%$%W(B */
    UW  info;       /* $B3FpJs(B */
    RECT    ir;     /* $BI=<(NN0h(B */
    W   desc;       /* $BFbIt%G%#%9%/%j%W%?(B */
    W   dnum;       /* $B%G!<%?HV9f(B */
    H   *ptr;       /* $B%G!<%?%]%$%s%?(B */
} PNL_ITEM;

$B""(B $B%Q%M%k(B

typedef struct panel {
    UW  oframe;     /* $B6-3&@~(B($B30OH(B)$B$NB0@-(B */
    UW  iframe;     /* $BFbOH$NB0@-(B */
    W   bgpat;      /* $BGX7J%Q%?!<%s(B */
    RECT    r;      /* $BI=<(NN0h(B */
    W   defsw;      /* $B%G%U%)!<%k%H%9%$%C%AHV9f(B */
    W   nitem;      /* $B9`L\?t(B */
    PNL_ITEM *item; /* $B9`L\G[Ns$X$N%]%$%s%?(B */
} PANEL;

3.4.3 $B%Q%M%k%^%M!<%8%c$N4X?t(B

$B$3$3$G$O!"%Q%M%k%^%M!<%8%c$,%5%]!<%H$7$F$$$k3F4X?t$N>\:Y$r@bL@$9$k!#(B $B$3$l$i$N4X?t72$O303L$N3HD%%7%9%F%`%3!<%k$H$7$FDs6!$5$l$k!#(B

$B3F4X?t$N%(%i!<%3!<%I$H$7$F$O!"$3$3$G<($7$?0J30$K$b!"(B $B3K$dB>$N303L$G%(%i!<$,8!=P$5$l$?>l9g$O!"$=$N%(%i!<%3!<%I$,D>@\La$k!#(B

pcre_pnl
 
$B%Q%M%k$N@8@.(B

$B!Z7A<0![(B

PNID    pcre_pnl(PANEL *pnl, PNT *p)

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

PANEL   *pnl    $B%Q%M%kDj5A%G!<%?(B
PNT     *p  $B%Q%M%kI=<(0LCV(B

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

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

$B!Z2r@b![(B

pnl $B$GDj5A$7$?%Q%M%k$r@8@.$7!"(B p $B$G;XDj$7$?0LCV$K%Q%M%k$NI=<($r9T$J$&!#(B

$B%Q%M%k$O%*!<%W%s$5$l$k$HF~NOuBV$r2#l9g$O!"(B $B85$NF~NOuBV$N%&%#%s%I%&$KBP$7$F(B EV_INACT $B$,Aw$i$l!"(B EV_INACT $B$,l9g$O!"(B EV_INACT $B$OAw$i$l$J$$!#(B

$B%Q%M%k$r%/%m!<%:$7$?>l9g!"(B $B%*!<%W%s$7$?;~$KF~NOuBV$G$"$C$?%&%#%s%I%&$KF~NOuBV$,La$j!"(B EV_INACT $B$rAw$C$?>l9g$O!"(B EV_SWITC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Q99$5$l$J$+$C$?>l9g$O(B (5) $B$N=hM}$r9T$J$$!"(B $B>uBV$,JQ99$5$l$?>l9g$O(B (3)$B!"(B(4) $B$N=hM}$r9T$J$&!#(B
(3)
$B%\%C%/%9%?%$%W$N%Q!<%D$N(B cact_par() $B$rl9g!'(B
  • [$B%?%V(B]$B!"(B[$BF~NO=*(B]$B!"(B[$B2~CJMn(B / $B2~9T(B]$B%-!<$G=*N;$7$?>l9g$O!"(B cact_par() $B$N4X?tCM$r(B pact_pnl() $B$N4X?tCM$H$7$F%j%?!<%s$9$k!#(B $B$3$N;~!"(B*itemno $B$K$OA`:n$7$?%Q!<%D$N9`L\HV9f$,@_Dj$5$l!"(B *ev $B$K$O(B EV_NULL $B$,@_Dj$5$l$k!#(B $B$3$N>l9g!"pact_pnl() $B$,8F$P$l$?>l9g$N%\%C%/%9$NF~NO>uBV$O!"(B $B0J2<$N$h$&$K$J$k!#(B
    
           [$B%?%V(B]                   -- $B9`L\HV9f=g$G$NuBV$H$J$k(B
           [$BF~NO=*(B][$B2~CJMn(B / $B2~9T(B]  -- $BF10l$N%\%C%/%9$,:FEYF~NO>uBV$H$J$k(B
    

    $B$?$@$7!"%G%U%)!<%k%H%9%$%C%A$,Dj5A$5$l$F$$$k>l9g$O!"(B $B!V2~CJMn(B / $B2~9T!W%-!<$K$h$j!"%G%U%)!<%k%H%9%$%C%A$bF0:n$9$k!#(B $B%G%U%)!<%k%H%9%$%C%A$NF0:n$Opact_pnl() $B$,8F$P$l$?$H$-$K9T$J$o$l$k!#(B $B%G%U%)!<%k%H%9%$%C%A$NF0:n$,9T$J$o$l$k$H!"(B*itemno $B$K%G%U%)%k%H%9%$%C%A$N9`L\HV9f$rIi$K$7$?$b$N$,@_Dj$5$l$k!#(B

  • $B%\%C%/%930$N(B PD $B$N%W%l%9$G=*N;$7$?>l9g$O!"(B $B$^$:!"(Bcact_par() $B$N4X?tCM$r(B pact_pnl()$B$N4X?tCM$H$7$FJV$9!#(B $B$3$N;~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(B  -- 0

item = NULL $B$N>l9g$O9`L\$NDj5A%G!<%?$Ne5-$NFbIt%G%#%9%/%j%W%?$NCM$,La$k!#(B

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

EX_ADR      : $B%"%I%l%9(B(item)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EX_PAR      : $B%Q%i%a!<%?$,IT@5$G$"$k(B(itemno$B$,IT@5(B)$B!#(B
EX_PNID     : $B%Q%M%k(B(pnid)$B$OB8:_$7$F$$$J$$!#(B
pset_itm
 
$B%Q%M%k9`L\$N@_Dj(B

$B!Z7A<0![(B

W   pset_itm(W pnid, W itemno, PNL_ITEM *item)

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

W   pnid        $B%Q%M%k(BID
W   itemno      $B9`L\HV9f(B
PNL_ITEM *item  $B%Q%M%k9`L\%G!<%?(B

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

$B!f(B0    $B@5>o(B($B4X?tCM$O9`L\$NFbIt%G%#%9%/%j%W%?(B)
$B!c(B0    $B%(%i!<(B($B%(%i!<%3!<%I(B)

$B!Z2r@b![(B

pnid $B$G;XDj$7$?%Q%M%kFb$N(B itemno $B$G;XDj$7$?9`L\$NDj5A%G!<%?$r(B item $B$G;XDj$7$?NN0h$NFbMF$KJQ99$7!"(B $B%Q%M%k$N:FI=<($r9T$J$&!#(B

item = NULL $B$N>l9g$O:F@_Dj$r9T$J$o$:!"(B $B;XDj$7$?9`L\$N:FI=<($N$_$r9T$J$&!#(B $BFC$K(B pset_itm(pnid, -1,NULL)$B$N>l9g$O!"(B $B$9$Y$F$N9`L\$N:FI=<($r9T$&!#(B

$B4X?tCM$H$7$F!"9`L\Dj5A%G!<%?@_Dj8e$N0J2<$NFbIt%G%#%9%/%j%W%?$NCM$,La$k!#(B

    $B%3%s%H%m!<%k%Q!<%D$N>l9g!'(B      -- $BEPO?$5$l$?%Q!<%D(BID
    $B%3%s%H%m!<%k%Q!<%D0J30$N>l9g!'(B  -- 0
psel_box
 
$B%Q%M%k$NF~NO%\%C%/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F$$$J$$>l9g!"(B $B$*$h$S%G%U%)!<%k%H%9%$%C%A9`L\$,5,Dj$5$l$F$$$J$$>l9g$O!"(B EX_PAR $B$N%(%i!<$H$J$k!#(B

$B$^$?!"%G%U%)!<%k%H%9%$%C%A9`L\HV9f$h$j>.$5$$9`L\HV9f$N(B PARTS_ITEM $B9`L\$,B8:_$9$k>l9g$O!"(B EX_PAR $B$N%(%i!<$H$J$k!#(B

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

EX_ADR      : $B%"%I%l%9(B(arg1$B!A(B3)$B$N%"%/%;%9$O5v$5$l$F$$$J$$!#(B
EX_PAR      : $B%Q%i%a!<%?$,IT@5$G$"$k(B(-1000 < kind < 1000$B!"%Q%M%k%G!<%?$,EPO?$5$l(B
              $B$F$$$J$$!"%G%U%)!<%k%H%9%$%C%A$,L$Dj5A!"%G%U%)!<%k%H%9%$%C%A9`L\(B
              $BHV9f$h$j>.$5$$HV9f$N%Q!<%D9`L\$,B8:_$9$k(B)$B!#(B
EX_SAVE     : $B%$%a!<%8$N%;!<%VNN0h$,ITB-$7$?(B
              (kind > 0 $B$G%M%9%F%#%s%0$7$?%Q%M%k$N>l9g(B)$B!#(B
pdsp_msg
 
$B%7%9%F%`%a%C%;!<%8%Q%M%k$NI=<((B

$B!Z7A<0![(B

W   pdsp_msg(TC *msg)

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

TC  *msg    $BJ8;zNs(B

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

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

$B!Z2r@b![(B

$B%7%9%F%`%a%C%;!<%8%Q%M%k$K8=:_I=<($5$l$F$$$k%a%C%;!<%8$r>C5n$7!"(B msg $B$G;XDj$7$?%a%C%;!<%8$r?7$?$KI=<($9$k!#(B msg = NULL $B$N>l9g$O!"C1$K8=:_$NI=<($N>C5n$r9T$J$&!#(B

$B%a%C%;!<%8$O!"%7%9%F%`$N%G%U%)!<%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