SVN r1192

SVN-Revision: r1192
This commit is contained in:
cyf
2026-06-01 01:57:49 +00:00
parent 23b4d21c5d
commit ae3275e9ef
5 changed files with 73 additions and 36 deletions
+2 -35
View File
@@ -38,7 +38,6 @@ namespace Lskj.Main
[STAThread]
static void Main(string[] args)
{
//SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
CefRuntime.Load();//cef浏览器模块设置加载
var mainArgs = new CefMainArgs(args);
@@ -62,7 +61,7 @@ namespace Lskj.Main
try
{
// 汉化DevExpress界面
Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CH");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CN");
// 设置皮肤
BonusSkins.Register();
SkinManager.EnableFormSkins();
@@ -223,36 +222,4 @@ namespace Lskj.Main
}
using (var key = Registry.CurrentUser.CreateSubKey(@"Software\Classes\lserp\shell\open\command"))
{
key.SetValue("", $"\"{exePath}\" \"%1\"");
}
}
private static void Unregister()
{
Registry.CurrentUser.DeleteSubKeyTree(@"Software\Classes\lserp", false);
}
#endregion
//public static Form GetForm()
//{
// Form X = new CEFdemo.Form1();
// return X;
//}
public class Messager : IMessageFilter
{
public bool PreFilterMessage(ref Message m)
{
//如果检测到有鼠标或则键盘的消息,则使计数为0.....
if (m.Msg == 0x0200 || m.Msg == 0x0201 || m.Msg == 0x0204 || m.Msg == 0x0207)
{
Manager.isAwaitTime = 0;
}
if (m.Msg == 0x0100 && m.WParam != new IntPtr(0x0000001b) && Lskj.Model.ERPInfo.Instance.IsExecute)
{
return true;
}
return false;
}
}
}
}
key.SetValu