child windows not receiving focus events?

new topic     » topic index » view thread      » older message » newer message

I'm writing an app that needs a child window to receive GotFocus/LostFocus
events. The problem is, the child window only receives an initial LostFocus
event. I'm using Win32Lib 0.60 and Windows XP Pro. I've attached a small
example. As you can see when running it, clicking or whatever does not
trigger a GotFocus on the child window, but clicking the EditText controls
does trigger the events. I know there's got to be a WS_ or WS_EX_ flag that
triggers this or something.

~Greg


begin 666 focus_demo.exw
M#0II;F-L=61E(%=I;C,R3&EB+F5W#0IW:71H;W5T('=A<FYI;F<-"@T*8V]N
M<W1A;G0-"@T*"4UA:6X)/2!C<F5A=&4H(%=I;F1O=RP@(D9O8W5S(%1E<W0B
M+" P+"!#96YT97(L($-E;G1E<BP@-# P+" S,# L(# @*2P-"@E497AT,0D]
M(&-R96%T92@@161I=%1E>'0L("(B+"!-86EN+"![=S,R161G92PQ,'TL('MW
M,S)%9&=E+#$P?2P@>S N-2PM-7TL(#(P+" P("DL#0H)5&5X=#()/2!C<F5A
M=&4H($5D:71497AT+" B(BP@36%I;BP@>S N-2PU?2P@>W<S,D5D9V4L,3!]
M+"![=S,R161G92PM,3!]+" R,"P@," I+ T*"5-U8E=I;@D](&-R96%T945X
M*"!7:6YD;W<L("(B+"!-86EN+"![=S,R161G92PQ,'TL('MW,S)%9&=E+#0P
M?2P@>W<S,D5D9V4L+3$P?2P@>W<S,D5D9V4L+3$P?2P-"@D)>U=37T-(24Q$
M+%=37U9)4TE"3$4L5U-?0TQ)4%-)0DQ)3D=3?2P@5U-?15A?0TQ)14Y4141'
M12 I#0H-"@T*#0IP<F]C961U<F4@1F]C=7-(86YD;&5R*"!I;G1E9V5R('!3
M96QF+"!I;G1E9V5R('!%=F5N="P@<V5Q=65N8V4@<%!A<F%M<R I#0H-"@EI
M9B!P4V5L9B ](%1E>'0Q('1H96X-"@D)<'5T<R@Q+" B5&5X=#$B*0T*"65L
M<VEF('!396QF(#T@5&5X=#(@=&AE;@T*"0EP=71S*#$L(")497AT,B(I#0H)
M96QS:68@<%-E;&8@/2!3=6)7:6X@=&AE;@T*"0EP=71S*#$L(")3=6)7:6XB
M*0T*"65N9"!I9@T*#0H):68@<$5V96YT(#T@=S,R2$=O=$9O8W5S('1H96X-
M"@D)<'5T<R@Q+" B($=O=$9O8W5S7&XB*0T*"65L<VEF('!%=F5N=" ]('<S
M,DA,;W-T1F]C=7,@=&AE;@T*"0EP=71S*#$L("(@3&]S=$9O8W5S7&XB*0T*
M"65N9"!I9@T*#0IE;F0@<')O8V5D=7)E#0IS971(86YD;&5R*"![5&5X=#$L
M5&5X=#(L4W5B5VEN?2P@>W<S,DA';W1&;V-U<RQW,S)(3&]S=$9O8W5S?2P@
M<F]U=&EN95]I9"@B1F]C=7-(86YD;&5R(BD@*0T*#0I7:6Y-86EN*"!-86EN
*+"!.;W)M86P@*0``
`
end

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu