summaryrefslogtreecommitdiff
path: root/chromium/base/win/win_client_metrics.h
blob: 102148f06a95b6022d47f898faf77df7e886a1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file is separate from base/win/win_util.h to avoid pulling windows.h
// into too many translation units.

#ifndef BASE_WIN_WIN_CLIENT_METRICS_H_
#define BASE_WIN_WIN_CLIENT_METRICS_H_

#include <windows.h>

// This is the same as NONCLIENTMETRICS except that the
// unused member |iPaddedBorderWidth| has been removed.
struct NONCLIENTMETRICS_XP {
  UINT cbSize;
  int iBorderWidth;
  int iScrollWidth;
  int iScrollHeight;
  int iCaptionWidth;
  int iCaptionHeight;
  LOGFONTW lfCaptionFont;
  int iSmCaptionWidth;
  int iSmCaptionHeight;
  LOGFONTW lfSmCaptionFont;
  int iMenuWidth;
  int iMenuHeight;
  LOGFONTW lfMenuFont;
  LOGFONTW lfStatusFont;
  LOGFONTW lfMessageFont;
};

namespace base {
namespace win {

BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS_XP* metrics);

}  // namespace win
}  // namespace base

#endif  // BASE_WIN_WIN_CLIENT_METRICS_H_