Initialize NONCLIENTMETRICSW structure to be compatible with Windows Vista and later

Now that we no longer support Windows XP, we can safely assume that NONCLIENTMETRICSW structure always has |iPaddedBorderWidth| field and take it into consideration when calculating |NONCLIENTMETRICSW::cbSize| member.

See about why simply specifying |sizeof(NONCLIENTMETRICSW)| to |NONCLIENTMETRICSW::cbSize| is a bug-prone.

This is just an internal clean-up.  No user-visible behavior change is intended.


git-svn-id: a6090854-d499-a067-5803-1114d4e51264
2 files changed
tree: 52c17748b19f6591148d1ad0cffb84e054ffab12
  1. src/