|  |  | 
 |  |  |       arg.AddArg(L"Assignment", m_Assignment); | 
 |  |  |       if(xaserver::ExecXQuery(GetServerUrl(),L"[Menu.index.xq]",arg.GetString(),x)!=1) | 
 |  |  |       { | 
 |  |  |          //trace(x.xml()); | 
 |  |  |          alert(x.xml()); | 
 |  |  |          return -1;    | 
 |  |  |       } | 
 |  |  |       Hxsoft::XFrame::KXMLDOMNodeList li=x.selectNodes(L"items/item"); | 
 |  |  | 
 |  |  |       //alert(x.xml); | 
 |  |  |        | 
 |  |  |       int nIndex =cbx_menu.FindString(label); | 
 |  |  |       if(e.selectSingleNode(L"ModuelMore") && nIndex > - 1) | 
 |  |  |       /*if (e.selectSingleNode(L"ModuelMore") && nIndex > -1) | 
 |  |  |       { | 
 |  |  |          xstring mo = e.selectSingleNode(L"ModuelMore").text(); | 
 |  |  |          if((xstring)mo != L"Y") | 
 |  |  | 
 |  |  |             OnHideWin(); | 
 |  |  |             return 0; | 
 |  |  |          } | 
 |  |  |       } | 
 |  |  |       }*/ | 
 |  |  |  | 
 |  |  |       if(e.selectSingleNode(L"ModuelPage")) {} else return -1; | 
 |  |  |           | 
 |  |  | 
 |  |  |    int OnMenuAgent() | 
 |  |  |    { | 
 |  |  |       xstring s = L"menuAgent:Y"; | 
 |  |  |       SendMessage(m_nHwnd, 0x401, (LPARAM)s, 0); | 
 |  |  |       SendMessage(m_nHwnd, 0x401, (LPARAM)s.c_str(), 0); | 
 |  |  |       OnHideWin(); | 
 |  |  |       return 1; | 
 |  |  |    } |