0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

winAppDev > Windows7とWindows10の違い > CaptionHeightとCaptionWidth > 15異なる (Windows 8.1はWindows 10と同じ)

Last updated at Posted at 2018-04-25

関連

OSによる値の違い

レジストリの下記を確認した。

\HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics

Windows 7

  • BorderWidth: -15
  • CaptionHeight: -315
  • CaptionWidth: -315
  • PaddedBorderWidth: -60

Windows 10 v1709

  • BorderWidth: -15
  • CaptionHeight: -330
  • CaptionWidth: -330
  • PaddedBorderWidth: -60

Windows 7とWindows 10でCaptionHeightとCaptionWidthが異なる。

Windows 8.1 Pro

  • BorderWidth: -15
  • CaptionHeight: -330
  • CaptionWidth: -330
  • PaddedBorderWidth: -60

Windows 8.1はWindows 10と同じ値になっている。

  • Windows 8.1: マージンなし
  • Windows 10: マージンあり

配置時のマージンの有無にはCaptionHeightとCaptionWidthは関係ないのだろう。

やはり、ウィンドウ自体の周りの枠の有無が効いているのだろう。

  • Windows 8.1: 周りの枠あり
  • Windows 10: 周りの枠なし
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?