[CLIPBRD] Improvements for the Clipboard Viewer.
[reactos.git] / base / applications / clipbrd / precomp.h
index 5159ec2..7a04b96 100644 (file)
@@ -1,8 +1,18 @@
+/*
+ * PROJECT:     ReactOS Clipboard Viewer
+ * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
+ * PURPOSE:     Precompiled header.
+ * COPYRIGHT:   Copyright 2015-2018 Ricardo Hanke
+ */
+
 #ifndef _CLIPBRD_PCH_
 #define _CLIPBRD_PCH_
 
 // #pragma once
 
+#undef _WIN32_WINNT
+#define _WIN32_WINNT    0x600
+
 #include <limits.h>
 
 #include <assert.h>
 #include "resources.h"
 #include "cliputils.h"
 #include "fileutils.h"
-#include "winutils.h"
 #include "scrollutils.h"
+#include "winutils.h"
 
 #define MAX_STRING_LEN 255
 #define DISPLAY_MENU_POS 2
+
 #define CF_NONE 0
 
 typedef struct _CLIPBOARD_GLOBALS
@@ -34,8 +45,10 @@ typedef struct _CLIPBOARD_GLOBALS
     HMENU hMenu;
     UINT uDisplayFormat;
     UINT uCheckedItem;
-    UINT uLinesToScroll;
-    HBITMAP hDspBmp;
+
+    /* Metrics of the current font */
+    LONG CharWidth;
+    LONG CharHeight;
 } CLIPBOARD_GLOBALS;
 
 extern CLIPBOARD_GLOBALS Globals;