提交 8780c15c 编写于 作者: L Levi Bard

Don't show message box when failing to register window class.

上级 f9023b39
......@@ -895,7 +895,8 @@ namespace System.Windows.Forms {
bool result = Win32RegisterClass (ref wndClass);
if (result == false)
Win32MessageBox (IntPtr.Zero, "Could not register the window class, win32 error " + Win32GetLastError ().ToString (), "Oops", 0);
// This can happen legitimately when the window class has already been registered in another domain
Console.WriteLine ("Oops: Could not register the window class, win32 error {0}", Win32GetLastError ().ToString ());
registered_classes[classStyle] = class_name;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册