LiFan
2024-07-24 f7f68dbf94f9da14863f155d88cdaec47352ba99
jrj/project/vindexform.cpp
@@ -103,9 +103,8 @@
      if (!hMenu)
      {
         HWND hw = m_hMenu;
         bool f = IsWindow(hw);
         if (hw == 0 && f <= 0)
         bool bwin = hw ? IsWindow(hw):false;
         if (!bwin)
         {
            xaserverarg* arg = new xaserverarg();
            HWND hWnd = GetHWND();
@@ -256,9 +255,16 @@
   int ResetMenu()
   {
      ::DestroyWindow(m_hMenu);
      m_hMenu = 0;
      return 1;
      //if(m_nHwnd) xwin::CloseWindow(m_nHwnd);
      m_nHwnd = 0;
      OnMenu(NULL);
      OnMenuAgent(L"");
#if 0
      menuShow = -1;
      xstring f = getHomeConfig(L"menuposition");
      if (f == L"0")
@@ -267,6 +273,7 @@
         OnMenuAgent(L"");
      }
      xaserverarg arg;
   
      HWND h = GetHWND();
@@ -274,7 +281,7 @@
      arg.SetParam(L"hwnd", h);
      
      OpenWindow(L"dev:xpage[vindexforold.vx]", arg);
#endif
      return 1;
   }
@@ -403,7 +410,7 @@
      int cs = mainsheet.GetSheetCount();
      int i;
      for (i = 0; i < cs; i++) {
         //string str = xcombobox::GetLBText(cbx_menu.GetId(), i);
         //xstring str = xcombobox::GetLBText(cbx_menu.GetId(), i);
         xstring str = mainsheet.GetSheetText(i);
         if (i == k)
            AppendMenu(m, MF_STRING | MF_CHECKED, i + 1, str);
@@ -605,7 +612,7 @@
      Hxsoft::XFrame::KXMLDOMElement e = x.documentElement();
      if((xstring)m_Assignment == L"" && e.selectSingleNode(L"AssignmentID"))
      {
         string sInfoEx = e.selectSingleNode(L"AssignmentID").text();
         xstring sInfoEx = e.selectSingleNode(L"AssignmentID").text();
         m_Assignment = sInfoEx;
      }