From bcfe0d245aaa5ac4779df10156d5e7000485e2a9 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期二, 02 七月 2024 11:23:25 +0800 Subject: [PATCH] update face --- jrj/project/vindexform.cpp | 37 +++++++++++++++++++------------------ 1 files changed, 19 insertions(+), 18 deletions(-) diff --git a/jrj/project/vindexform.cpp b/jrj/project/vindexform.cpp index a229ce7..7718d19 100644 --- a/jrj/project/vindexform.cpp +++ b/jrj/project/vindexform.cpp @@ -28,12 +28,12 @@ xcombobox panelNo; //椤电鏁扮粍 xcombobox panelName; //椤电椤哄簭鏁扮粍 - int m_npHwnd; //鑿滃崟鏍戠獥鍙e彞鏌� - int m_nHwnd; //鑿滃崟鏍戠獥鍙e彞鏌� + HWND m_npHwnd; //鑿滃崟鏍戠獥鍙e彞鏌� + HWND m_nHwnd; //鑿滃崟鏍戠獥鍙e彞鏌� int m_cursheet; //褰撳墠椤电 int menuShow; - int m_npHwnd2; //openwindow + HWND m_npHwnd2; //openwindow int m_startwin; public: @@ -148,17 +148,17 @@ } 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; @@ -174,12 +174,12 @@ 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); @@ -212,14 +212,15 @@ 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); @@ -229,7 +230,7 @@ int ReSetInfo() { - xcombobox::ResetContent(memuId.GetId()); + cbx_menu.ResetContent(); xcombobox::ResetContent(tabNo.GetId()); xcombobox::ResetContent(panelNo.GetId()); xcombobox::ResetContent(panelName.GetId()); @@ -264,7 +265,7 @@ 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"); -- Gitblit v1.9.3