浏览代码

Reusing IsWin7

Source commit: 80b1b3d54407fc8a48f75eca48aaff0c65f43a2f
Martin Prikryl 3 年之前
父节点
当前提交
40610fe53a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/forms/MessageDlg.cpp

+ 1 - 1
source/forms/MessageDlg.cpp

@@ -1029,7 +1029,7 @@ TForm * __fastcall TMessageForm::Create(const UnicodeString & Msg,
   // Windows XP (not sure about Vista) does not support Hair space.
   // Windows XP (not sure about Vista) does not support Hair space.
   // For Windows XP, we still keep the existing hack by using hard-coded spaces
   // For Windows XP, we still keep the existing hack by using hard-coded spaces
   // in resource string
   // in resource string
-  if (CheckWin32Version(6, 1))
+  if (IsWin7())
   {
   {
     // Have to be padding with spaces (the smallest space defined, hair space = 1px),
     // Have to be padding with spaces (the smallest space defined, hair space = 1px),
     // as tabs actually do not tab, just expand to 8 spaces.
     // as tabs actually do not tab, just expand to 8 spaces.