| | |
| | | xcombobox panelNo; //页签数组 |
| | | xcombobox panelName; //页签顺序数组 |
| | | |
| | | int m_npHwnd; //菜单树窗口句柄 |
| | | int m_nHwnd; //菜单树窗口句柄 |
| | | HWND m_npHwnd; //菜单树窗口句柄 |
| | | HWND m_nHwnd; //菜单树窗口句柄 |
| | | int m_cursheet; //当前页签 |
| | | int menuShow; |
| | | |
| | | int m_npHwnd2; //openwindow |
| | | HWND m_npHwnd2; //openwindow |
| | | int m_startwin; |
| | | |
| | | public: |
| | |
| | | } |
| | | int OnMenuAgent(xstring f) |
| | | { |
| | | int LayerFlow_None = 0x00000001; |
| | | int LayerFlow_UnLayer = 0x00000100; |
| | | int LayerFlow_NS = 0x00000004; |
| | | int LayerFlow_Control = 0x00000010; |
| | | //int LayerFlow_None = 0x00000001; |
| | | //int LayerFlow_UnLayer = 0x00000100; |
| | | //int LayerFlow_NS = 0x00000004; |
| | | //int LayerFlow_Control = 0x00000010; |
| | | int GWL_STYLE = -16; |
| | | int WS_POPUP = 0x80000000; |
| | | int WS_CHILD = 0x40000000; |
| | | int WS_MAXIMIZE = 0x00010000; |
| | | int SW_MAXIMIZE = 3; |
| | | int HWND_TOPMOST = -1; |
| | | int HWND_NOTOPMOST = -2; |
| | | HWND HWND_TOPMOST = (HWND) - 1; |
| | | HWND HWND_NOTOPMOST = (HWND) - 2; |
| | | int SWP_NOSIZE = 0x0001; |
| | | int SWP_NOMOVE = 0x0002; |
| | | int SWP_SHOWWINDOW = 0x0040; |
| | |
| | | |
| | | style = style - WS_POPUP; |
| | | style = style + WS_CHILD; |
| | | xwin::SetWindowLong(m_nHwnd, GWL_STYLE, style); |
| | | SetWindowLong(m_nHwnd, GWL_STYLE, style); |
| | | |
| | | m_npHwnd = xwin::GetParent(m_nHwnd); |
| | | m_npHwnd = GetParent(m_nHwnd); |
| | | xcontrol xc = GetControl(L"menuAgent"); |
| | | xwin::SetParent(m_nHwnd, xc.GetId()); |
| | | xwin::ShowWindow(m_nHwnd, SW_MAXIMIZE); |
| | | SetParent(m_nHwnd, xc.GetHWND()); |
| | | ShowWindow(m_nHwnd, SW_MAXIMIZE); |
| | | |
| | | ///AttachEvent(L"WM_SIZE",OnMenuSizeChanged); |
| | | //AttachEvent(L"WM_PAINT",OnMenuSizeChanged); |
| | |
| | | xstring f = getHomeConfig(L"menuposition"); |
| | | if (f == L"0") |
| | | { |
| | | OnMenu(L""); |
| | | OnMenu(NULL); |
| | | OnMenuAgent(L""); |
| | | } |
| | | |
| | | xaserverarg arg; |
| | | |
| | | int h = GetHWND(); |
| | | arg.AddArg(L"hwnd", xstring(h)); |
| | | HWND h = GetHWND(); |
| | | //arg.AddArg(L"hwnd", xstring(h)); |
| | | arg.SetParam(L"hwnd", h); |
| | | |
| | | OpenWindow(L"dev:xpage[vindexforold.vx]", arg); |
| | | |
| | |
| | | int ReSetInfo() |
| | | { |
| | | |
| | | xcombobox::ResetContent(memuId.GetId()); |
| | | cbx_menu.ResetContent(); |
| | | xcombobox::ResetContent(tabNo.GetId()); |
| | | xcombobox::ResetContent(panelNo.GetId()); |
| | | xcombobox::ResetContent(panelName.GetId()); |
| | |
| | | if (m_Assignment == L"") |
| | | alert(L"获取用户数据失败,请重新登录!"); |
| | | else |
| | | xaserver::SetUserId(m_Assignment); |
| | | xaserver::SetUID(m_Assignment); |
| | | |
| | | xcombobox::AddItem(memuId.GetId(), L"开始"); |
| | | xcombobox::AddItem(tabNo.GetId(), L"-1"); |