forked from ColorCop/ColorCop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStdAfx.h
More file actions
79 lines (66 loc) · 2.9 KB
/
StdAfx.h
File metadata and controls
79 lines (66 loc) · 2.9 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Copyright (c) 2024 Jay Prall
// SPDX-License-Identifier: MIT
#pragma once
//------------------------------------------------------------------------------
// Platform / Windows configuration
//------------------------------------------------------------------------------
#define NOMINMAX // Prevent Windows macros from breaking std::min/std::max
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used Windows headers
//------------------------------------------------------------------------------
// Standard library
//------------------------------------------------------------------------------
#include <cstdint>
#include <cmath>
//------------------------------------------------------------------------------
// Application feature flags (bitmask)
//------------------------------------------------------------------------------
//
// NOTE:
// These are intentionally kept as macros for minimal churn.
// A future modernization step would be a strongly-typed enum class.
//
#define AlwaysOnTop (1u << 2)
#define UpperCaseHex (1u << 3)
#define OmitPound (1u << 4)
#define SnaptoWebsafe (1u << 5)
#define AutoCopytoClip (1u << 6)
#define MinimizetoTray (1u << 7)
#define EasyMove (1u << 8)
#define MinimizeOnStart (1u << 9)
#define ExpandedDialog (1u << 10)
#define ModeHTML (1u << 11)
#define ModeDelphi (1u << 12)
#define ModePowerBuilder (1u << 13)
#define ModeVisualBasic (1u << 14)
#define ModeVisualC (1u << 15)
#define Sampling1 (1u << 16)
#define Sampling3x3 (1u << 17)
#define Sampling5x5 (1u << 18)
#define MultipleInstances (1u << 19)
#define DetectWebsafeColors (1u << 20)
#define RGBINT (1u << 21)
#define RGBFLOAT (1u << 22)
#define MAGWHILEEYEDROP (1u << 23)
#define USECROSSHAIR (1u << 24)
#define SETCURSORONEYEDROP (1u << 25)
#define MULTIPIXELSAMPLE (1u << 26)
#define SamplingMULTI (1u << 27)
#define SpaceRGB (1u << 28)
#define SpaceCMYK (1u << 29)
#define ModeClarion (1u << 30)
//------------------------------------------------------------------------------
// Constants
//------------------------------------------------------------------------------
constexpr int MULTIPIX_MIN = 1;
constexpr int MULTIPIX_MAX = 15;
// Prefer constexpr over macros for typed constants
constexpr double kPi = 3.14159265358979323846;
//------------------------------------------------------------------------------
// MFC headers
//------------------------------------------------------------------------------
#include <afxwin.h> // Core MFC components
#include <afxext.h> // Extensions (controls, OLE)
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Common controls
#endif
//{{AFX_INSERT_LOCATION}} // NOLINT(whitespace/comments)