Discussion:
隠れているコントロールが反応する
(too old to reply)
やま
2008-09-13 11:30:04 UTC
Permalink
$B$*@$OC$K$J$C$F$$$^$9!#(B
VC6.0 MFC$B$r;H$C$F$$$^$9!#(B

$B%@%$%"%m%0>e$N%3%s%\%\%C%/%9$N%(%G%#%C%HIt$K%-!<F~NO$5$l$?$i(B
$B<+J,$G(BCreate$B$7$?%j%9%H%\%C%/%9$r$=$N2<It$KI=<($5$;$F$$$^$9!#(B

$B$=$N$H$-<+A0$N%j%9%H%\%C%/%9$,JL$N%3%s%\%\%C%/%9$rJ$$$1#$9(B
$B$N$G$9$,!"%j%9%H%\%C%/%9$r%/%j%C%/$9$k$H2<$N%3%s%\%\%C%/%9(B
$B$,H?1~$7$F$7$^$$$^$9!#!J2<$K$"$k%3%s%\%\%C%/%9$,8+$($k$h$&(B
$B$K$J$j$^$9!K%3%s%\%\%C%/%9$H=E$J$C$F$$$J$$$H$3$m$r%/%j%C%/(B
$B$9$k$H%j%9%H%\%C%/%9$,%$%Y%s%H$r=&$$$^$9!#(B
$B860x$O$J$s$G$7$g$&!#=hM}$O0J2<$NDL$j$G$9!#(B

OnInitDialog() $B$G(B
m_ListBox.Create(WS_CHILD|LBS_NOTIFY|WS_VSCROLL, rect, this, 2000);

OnEditChage() $B$G(B m_ListBox.AddString() $B$7$F(B Show$B!#(B
UETA, Shin-ichi
2008-09-14 06:27:40 UTC
Permalink
$B$3$s$K$A$O!"?"ED$G$9!#(B
Post by やま
$B$=$N$H$-<+A0$N%j%9%H%\%C%/%9$,JL$N%3%s%\%\%C%/%9$rJ$$$1#$9(B
$B$N$G$9$,!"%j%9%H%\%C%/%9$r%/%j%C%/$9$k$H2<$N%3%s%\%\%C%/%9(B
$B$,H?1~$7$F$7$^$$$^$9!#!J2<$K$"$k%3%s%\%\%C%/%9$,8+$($k$h$&(B
$B$K$J$j$^$9!K%3%s%\%\%C%/%9$H=E$J$C$F$$$J$$$H$3$m$r%/%j%C%/(B
$B$9$k$H%j%9%H%\%C%/%9$,%$%Y%s%H$r=&$$$^$9!#(B
$B$3$l$O!"C1=c$K(BZ$B%*!<%@!<$NLdBj$G$7$g$&!#%3%s%\%\%C%/%9$NJ}$,(B
$B>e$K$"$k$HH=CG$5$l$F$$$F!"(BWM_NCHITTEST$B%a%C%;!<%8$J$I$,(B
$B%3%s%\%\%C%/%9$KN.$l$F$$$k$O$:$G$9!#(B

# Spy++$B$G3NG'$G$-$^$9!#(B

$B$3$l$r2r7h$9$k$K$O!"(BShowWindow()$B$NBe$o$j$K!"(BSetWindowPos()
$B$r;H$$$^$9!#(B

m_ListBox.SetWindowPos(&wndTop, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);

$B$?$@$7!"$3$l$@$1$G$OIT==J,$G!"%3%s%\%\%C%/%9$K(BWS_CLIPSIBLINGS
$B%9%?%$%k$,@_Dj$7$F$$$J$$$+$.$j!"%3%s%\%\%C%/%9$,%j%9%H%\%C%/%9$N(B
$B>e$KIA2h$5$l$F$7$^$$!"%j%9%H%\%C%/%9$r1x$7$F$7$^$$$^$9!#(B

$B$H$j$"$($:!"(BZ$B%*!<%@!<$NLdBj$NMM;R$r8+$k$@$1$J$i!"<!$N$h$&$J(B
$B%3!<%I$G0l;~E*$K%3%s%\%\%C%/%9$N>e=q$-$OHr$1$i$l$^$9!#(B

$B$^$:%@%$%"%m%0%\%C%/%9A4BN$r:FIA2h(B
UpdateWindow();

$B$=$N>e$G%j%9%H%\%C%/%9$r:FIA2h(B
m_ListBox.Invalidate();
m_ListBox.UpdateWindow();
--
$B?"ED%7%9%F%`@_7W;vL3=j(B
Ueta System Design Studio
http://www.usdesign.jp/
$B?"ED??0l(B
mailto:***@usdesign.jp
UETA, Shin-ichi
2008-09-14 06:37:44 UTC
Permalink
$B$I$&$b!"?"ED$G$9!#G0$N$?$a!"JdB-$7$^$9!#(B
Post by UETA, Shin-ichi
$B%3!<%I$G0l;~E*$K%3%s%\%\%C%/%9$N>e=q$-$OHr$1$i$l$^$9!#(B
$B!A(B

$B$3$N%3!<%I$O!"(BSetWindowPos()$B$ND>8e$K5-=R$7$F$/$@$5$$!#(B
$B$^$?!"$"$/$^$G!V0l;~E*!W$G$"$C$F!"%@%$%"%m%0%\%C%/%9$,:FIA2h(B
$B$5$l$k$h$&$J>u67$G$O0UL#$,$"$j$^$;$s!#(B
$B%I%m%C%W%@%&%s%j%9%H$J$I$HF1$8$h$&$K%U%)!<%+%9$r<:$C$?$i$9$0$K(B
$B1#$9$J$I!"$b$&>/$7CzG+$J:n$j9~$_$,I,MW$K$J$k$O$:$G$9!#(B
--
$B?"ED%7%9%F%`@_7W;vL3=j(B
Ueta System Design Studio
http://www.usdesign.jp/
$B?"ED??0l(B
mailto:***@usdesign.jp
やま
2008-09-15 02:44:51 UTC
Permalink
$B?"EDMM$"$j$,$H$&$4$6$$$^$9!#(B

Spy++ $B$G%3%s%\%\%C%/%9$,%a%C%;!<%8$r<u$1<h$C$F$$$k$3$H$,(B
$BJ,$+$j$^$7$?!#(B
SetWindowPos() $B$H(B WS_CLIPSIBLINGS $B$r;H$C$F$d$C$F$_$^$7$?!#(B
$B%j%9%H%\%C%/%9$N?bD>%9%/%m!<%k%P!<$NItJ,$K(B
$B2<$N%3%s%\%\%C%/%9$N"'$,8+$($F$7$^$&$N$G$9$,!"(B
$B2?8N$G$7$g$&!#(B
$B$H!"$3$3$^$G=q$$$?$H$-%3%s%\%\%C%/%9$K$O#2$D$N(BWindow $B$,(B
$B$"$k$3$H$r;W$$=P$9!#JRJ}$7$+(BWS_CLIPSIBLINGS$B$r(B
$***@_Dj$7$F$$$J$$$;$$$G$7$g$&$+!#(B
WS_CLIPSIBLINGS $B$***@_Dj$O$3$s$J46$8$G$9!#(B

CWnd *cwnd = GetDlgItem($B%3%s%\%\%C%/%9$N%j%=!<%9(BID);
long lnExStyle = GetWindowLong(cwnd->m_hWnd, GWL_EXSTYLE);
long rtn = SetWindowLong(cwnd->m_hWnd, GWL_EXSTYLE,
lnExStyle | WS_CLIPSIBLINGS);
やま
2008-09-15 03:31:47 UTC
Permalink
$BD{@5$G$9!#@h$[$I$N$O(B
UpdateWindow();
m_ListBox.Invalidate();
m_ListBox.UpdateWindow();
$B$rF~$l$F$^$7$?!#(B
$B$3$l$r<h$C$F$7$^$&$H!"2<$N%3%s%\%\%C%/%9$,(B
$B8+$($FI=<($5$l$F$7$^$$$^$9!#(B
WS_CLIPSIBLINGS $B$,8z$$$F$$$J$$$h$&$J!#(B
$***@h$N%3!<%I$G$OBLL\$C$F$3$H$G$9$+!#(B
UETA, Shin-ichi
2008-09-15 04:15:40 UTC
Permalink
$B$I$&$b!"?"ED$G$9!#(B
Post by やま
$B$3$l$r<h$C$F$7$^$&$H!"2<$N%3%s%\%\%C%/%9$,(B
$B8+$($FI=<($5$l$F$7$^$$$^$9!#(B
WS_CLIPSIBLINGS $B$,8z$$$F$$$J$$$h$&$J!#(B
$B$3$N%3!<%I$O!"(BWS_CLIPSIBLINGS$B%9%?%$%k$K$+$+$o$i$:!"(B
$B:FIA2h$r6/@)$7$F(BSetWindowPos()$B$N8z2L$r3NG'$9$k$?$a(B
$B$N$b$N$G$9!#(B
$B$b$A$m$s!"%j%9%H%\%C%/%9$NI=<($,0l;~E*$G$"$l$P$3$l$r(B
$B$=$N$^$^;H$&$3$H$b$G$-$k$+$H;W$$$^$9$,!"%U%)!<%+%9$r(B
$B<:$C$?8e$bI=<($7B3$1$k$J$i$J$K$+$7$i$NBP:v$,I,MW$K(B
$B$J$k$N$G!"(BWS_CLIPSIBLINGS$B%9%?%$%k$***@_Dj$7$F$*$$$?(B
$BJ}$,$$$$$@$m$&$H$$$&$3$H$G$9!#(B

$B$G!"(BWS_CLIPSIBLINGS$B%9%?%$%k$***@_Dj$G$9$,!"$3$l$O(B
$B3HD%%9%?%$%k$G$O$J$/!"DL>o$N%9%?%$%k$***@_Dj$G$9$N$G!"(B
GetWindowLong/SetWindowLong$B$G$O(BGWL_STYLE$B$r(B
$B;XDj$7$F$/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$G%j%9%H%\%C%/%9$rHs%/%i%$%"%s%HNN0h$b4^$a$F:FIA2h(B
m_ListBox.RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_FRAME);

# RDW_FRAME$B$r2C$($F(Bnon-client$BNN0h$NIA2h$r6/@)$7$^$9!#(B
--
$B?"ED%7%9%F%`@_7W;vL3=j(B
Ueta System Design Studio
http://www.usdesign.jp/
$B?"ED??0l(B
mailto:***@usdesign.jp
やま
2008-09-15 12:03:34 UTC
Permalink
$B$"$j$,$H$&$4$6$$$^$9!#(B
RedrawWindow$B$G$&$^$/I=<($G$-$^$7$?!#(B
$B%j%9%H%\%C%/%9$O$9$0$K>C$9$N$G(B WS_CLIPSIBLINGS $B$N$3$H$O(B
$B2#F;$J$N$G$9$,!"(BGWL_STYLE $B$K$9$k$H%3%s%\%\%C%/%9$,>C$($F(B
$B$7$^$$$^$7$?!#$3$A$i$N%W%m%0%i%`$K860x$,$"$k2DG=@-$,Bg(B
$B$J$N$G$b$&>/$7D4$Y$^$9!#(B

$BK\Bj$OI=<($7$?%j%9%H%\%C%/%9$r$$$D>C$9$+$G$9!#(B
$B;EMM$G$O%3%s%\$KJ8;z$,F~NO$5$l$k$H8uJd$,J#?t$"$k$H$-(B
$B%j%9%H%\%C%/%9$rI=<($7%j%9%H%\%C%/%9$G%/%j%C%/$5$l$?(B
$B$b$N$r%3%s%\%\%C%/%9$KI=<($9$k$3$H$K$J$C$F$$$^$9!#(B
$B%3%s%\%\%C%/%9$,%U%)!<%+%9$r<:$C$?$H$-%j%9%H%\%C%/%9$r(B
$B>C$9$H$9$k$H!"%^%&%9$G$N%/%j%C%/$,=PMh$^$;$s!#(B
$B%/%j%C%/$7$?=V4V$K%3%s%\$N(B LostFocus $B$N=hM}$,Av$C$F(B
$B%j%9%H%\%C%/%9$,>C$5$l$F$7$^$&$+$i$@$H;W$C$F$$$^$9!#(B

$B2r7h:v$O$"$j$^$9$G$7$g$&$+!#IaDL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A!"I8=`$N%3%s%\%\%C%/%9$K$G$-$k$3$H$O<+:n$N%3%s%H%m!<%k(B
$B$G$b$G$-$k$O$:$J$N$G!"$=$l$J$j$K:n$j9~$a$P<B8=$G$-$k$N$@(B
$B$H;W$$$^$9!#$=$lAj1~$N%3%9%H$r3P8g$9$l$P!"$G$9$1$I(B($B6l>P(B)
$B>/$J$/$H$b!"!V$3$N(BAPI$B$5$(8F$Y$P(BOK$B!WE*$J$b$N$G$O$J$$$G$9$h!"(B
$B$?$V$s!#(B
--
$B?"ED%7%9%F%`@_7W;vL3=j(B
Ueta System Design Studio
http://www.usdesign.jp/
$B?"ED??0l(B
mailto:***@usdesign.jp
やま
2008-09-16 02:24:10 UTC
Permalink
$B%I%m%C%W%@%&%s$G$OA4$F$N9`L\$rI=<(!#(B
$B%j%9%H%\%C%/%9$G$O0lIt$N9`L\$rI=<($7$^$9!#(B
Post by UETA, Shin-ichi
$B$^$+$J$($=$&$J5$$,$9$k$N$G$9$,(B...$B!)(B
$B$G$-$J$/$O$J$$$N$G!"%3%s%\%\%C%/%9$H$=$l$K4XO"IU$1$?%j%9%H(B
$B%\%C%/%9$N$I$A$i$+$K%U%)!<%+%9$,$"$kFb$O%j%9%H%\%C%/%9$r(B
$BI=<($7B3$1$k!"$H$$$C$?:n$j9~$_$,I,MW$K$J$j$=$&$G$9$M!#(B
$B$=$&$G$9$M!#$b$&>/$74hD%$C$F$_$^$9!#(B

Continue reading on narkive:
Loading...