diff options
Diffstat (limited to 'alf/alfcompat.h')
| -rw-r--r-- | alf/alfcompat.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/alf/alfcompat.h b/alf/alfcompat.h index 846590c..ba315e1 100644 --- a/alf/alfcompat.h +++ b/alf/alfcompat.h @@ -17,6 +17,35 @@ typedef struct { } ALFCompatFunctions; +typedef struct { + UINT cbSize; + int iBorderWidth; + int iScrollWidth; + int iScrollHeight; + int iCaptionWidth; + int iCaptionHeight; + LOGFONT lfCaptionFont; + int iSmCaptionWidth; + int iSmCaptionHeight; + LOGFONT lfSmCaptionFont; + int iMenuWidth; + int iMenuHeight; + LOGFONT lfMenuFont; + LOGFONT lfStatusFont; + LOGFONT lfMessageFont; + int iPaddedBorderWidth; // new in Vista +} ALF_NONCLIENTMETRICS_VISTA; + +static inline SIZE_T +ALF_SizeOf_NONCLIENTMETRICS(void) +{ + if (LOBYTE(LOWORD(GetVersion())) >= 6) { + return sizeof(ALF_NONCLIENTMETRICS_VISTA); + } else { + return sizeof(ALF_NONCLIENTMETRICS_VISTA) - sizeof(int); + } +} + ALFCompatFunctions * ALF_CreateCompatFuncTable(void); |
