
LOGS * X.log
ENVI^ ENVIMODE=1


ENVI &::CB_SETCURSEL=0x014E
ENVI &::CBN_SELENDOK=0x0009
ENVI &::CBN_EDITCHANGE=0x0005 //消息编辑，也支持
ENVI &::WM_COMMAND=0x0111
CALL @MAINw

_SUB MAINw,W363H172,
        LIST &LIST1,L29T27W290H100,||a||b|c|d,,,
        ITEM ITEM1,L171T81W116H30,改变选中项,CALL change,
        ENVI @&LIST1.ID=?&&LIST1_WID;&&LIST1_ID
        CALC -base=16 #&&LIST1_SELENDOK=%&CBN_SELENDOK% * 0x10000  +   %&LIST1_ID% 
_END

_SUB change
        ENVI @@SENDMSG=%&LIST1_WID%;%&CB_SETCURSEL%;2;0
        ENVI @this.SENDMSG=%&WM_COMMAND%;%&LIST1_SELENDOK%;%&LIST1_WID%
        MESS. &LIST1值：[%&LIST1%]  //&LIST1,正确，是c
_END

