Function GetChldID( PID, CID = 0 ) Ifb CID Then Ifb PID = STATUS( CID, ST_PARENT ) Then result = CID exit endif endif
h = GetWindow( IDToHnd(PID), GW_ENABLEDPOPUP ) Ifb h Then S = Status(HndToID(h), ST_CLASS) Select S case "#32768" Result = 0 case "tooltips_class32" Result = 0 default Result = HndToID(h) Selend Else Result = 0 Endif Fend