ENVI^ EnviMode=1
ENVI^ ForceLocal=1
SET$ &TAB=09
SET$ &NL=0D 0A
SET &::WM_KEYDOWN=0x0100
CALL @A

_SUB A,W310H320,
    TABL &D,L29T36W235H105,*40:A%&TAB%+20:B,1%&NL%2,0x10040
    EDIT -3D -vcenter EDIT1,L29T2W231H30,,,
    LABE LABEA,L29T144W234H30,,,
    LABE LABE1,L27T178W236H30,,,
    LABE LABE2,L27T217W236H30,,,
    LABE LABEW,L29T253W234H30,,,
    ENVI @&D.MSG=+%&WM_KEYDOWN%::&wp,&lp,   CALL CA +  //一般控件不能用+, 特制控件也可以
    ENVI @&D.MSG=_%&WM_KEYDOWN%::&wp,&lp,   CALL C1 _  //可用
    ENVI @&D.MSG=%&WM_KEYDOWN%::&wp,&lp,    CALL C2    //可用
    ENVI @this.MSG=+%&WM_KEYDOWN%::&wp,&lp, CALL CW +  //+窗口消息
_END

_SUB CA
	ENVI @LABEA=TABL键值[%&wp%][%*]
_END

_SUB C1
	ENVI @LABE1=TABL键值[%&wp%][%*]
_END

_SUB C2
	ENVI @LABE2=TABL键值[%&wp%][%*]
_END

_SUB CW
	ENVI @LABEW=WIND键值[%&wp%][%*]
_END

