摘要:
经测试,使用了MB_SYSTEMMODAL参数,弹出对话框时此对话框会抢夺焦点,即就算焦点在其他程序上,也强.其他的几个参数都没有这个效果MessageBox(self.Handle,'你好','好',MB_OK or MB_ICONQUESTION or MB_SYSTEMMODAL)//or MB_TASKMODAL// or MB_SYSTEMMODAL 阅读全文
摘要:
//以下代码均来自网络function GetWindowsVersionString: AnsiString;var VI: TOSVersionInfoA;begin VI.dwOSVersionInfoSize := SizeOf(TOSVersionInfoA); if GetVersionExA(VI) then with VI do Result := Trim( Format( '%d.%d build %d %s', [dwMajorVersion, dwMinorVersion, dwBuildNumber, szCSDVersion] ) ) else Re 阅读全文