Skip to content

Commit cb2826e

Browse files
committed
chore(build): upgrade project to C++20
Updated both Debug and Release configurations to use stdcpp20 instead of stdcpp17 in ColorCop.vcxproj, aligning the project with a more modern C++ standard and enabling newer language features.
1 parent d7f22b1 commit cb2826e

2 files changed

Lines changed: 57 additions & 55 deletions

File tree

ColorCop.vcxproj

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ColorCopDlg.h

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#pragma once
88

9+
#include <cstdint>
10+
911
/////////////////////////////////////////////////////////////////////////////
1012
// CColorCopDlg dialog
1113

@@ -145,59 +147,59 @@ class CColorCopDlg : public CDialog {
145147
CSystemTray* pTrayIcon_;
146148
int nTrayNotificationMsg_;
147149
// end
148-
void CColorCopDlg::FloatPrecisionUp();
149-
void CColorCopDlg::FloatPrecisionDown();
150-
void CColorCopDlg::GetScreenBitmap(CPoint point);
151-
152-
void CColorCopDlg::StopCapture();
153-
void CColorCopDlg::DisplayColor();
154-
void CColorCopDlg::ParseHTML(CString inst);
155-
void CColorCopDlg::ParseDelphi(CString inst);
156-
void CColorCopDlg::ParseClarion(CString inst);
157-
void CColorCopDlg::FigurePound();
158-
void CColorCopDlg::TestForExpand();
159-
int CColorCopDlg::DecimaltoWebsafe(int originalDec);
160-
void CColorCopDlg::TestForUpperHex();
161-
void CColorCopDlg::OnconvertHEX();
162-
void CColorCopDlg::OnconvertRGB();
163-
void CColorCopDlg::OnInitMenuPopup(CMenu* pMenu, UINT nIndex, BOOL bSysMenu);
164-
void CColorCopDlg::UpdateMenu(CMenu* pMenu);
165-
void CColorCopDlg::ToggleOnTop(bool bSetStatusbartext);
166-
void CColorCopDlg::TestForWebsafe();
167-
void CColorCopDlg::SetupTaskBarButton();
168-
void CColorCopDlg::SetupTrayIcon();
169-
void CColorCopDlg::SetupSystemMenu();
170-
void CColorCopDlg::SetupWindowRects();
171-
bool CColorCopDlg::LoadPersistentVariables();
172-
bool CColorCopDlg::AveragePixelArea(HDC hdc, int* m_Reddec, int* m_Greendec, int* m_Bluedec, CPoint point);
173-
void CColorCopDlg::SetupStatusBar();
174-
void CColorCopDlg::SetStatusBarText(LPCTSTR statusText);
175-
int CColorCopDlg::RangeCheck(int icolorval);
176-
void CColorCopDlg::AdvanceColorHistory();
177-
void CColorCopDlg::GetHistoryColor(int Cindex);
178-
HBITMAP CColorCopDlg::CopyBitmap(HBITMAP hBitmapSrc);
179-
bool CColorCopDlg::isWebsafeColor(int R, int G, int B);
180-
CString CColorCopDlg::GetTempFolder();
181-
BOOL CColorCopDlg::GetShellFolderPath(char* pShellFolder, char* pShellPath);
182-
183-
void CColorCopDlg::SetStatusBarText(UINT strResource, int toggleVal);
184-
185-
void CColorCopDlg::CalcColorPal();
186-
double CColorCopDlg::shiftHue(double hue);
187-
void CColorCopDlg::setSeedColor();
188-
void CColorCopDlg::RGBtoHSL(double R, double G, double B);
189-
void CColorCopDlg::HSLtoRGB(double H, double S, double L);
190-
void CColorCopDlg::setupSwatches();
191-
void CColorCopDlg::handleShifts();
192-
void CColorCopDlg::printSwatch();
193-
double CColorCopDlg::plusValue(double num);
194-
double CColorCopDlg::minusValue(double num);
195-
void CColorCopDlg::RecalcZoom();
196-
void CColorCopDlg::FireOptionMenu();
197-
PBITMAPINFO CColorCopDlg::CreateBitmapInfoStruct(HWND hwnd, HBITMAP hBmp);
198-
void CColorCopDlg::CreateBMPFile(HWND hwnd, LPTSTR pszFile, PBITMAPINFO pbi, HBITMAP hBMP, HDC hDC);
199-
void CColorCopDlg::UpdateCMYKFromRGB(int red, int green, int blue);
200-
void CColorCopDlg::ChangeColorSpace(bool bRGB);
150+
void FloatPrecisionUp();
151+
void FloatPrecisionDown();
152+
void GetScreenBitmap(CPoint point);
153+
154+
void StopCapture();
155+
void DisplayColor();
156+
void ParseHTML(CString inst);
157+
void ParseDelphi(CString inst);
158+
void ParseClarion(CString inst);
159+
void FigurePound();
160+
void TestForExpand();
161+
int DecimaltoWebsafe(int originalDec);
162+
void TestForUpperHex();
163+
void OnconvertHEX();
164+
void OnconvertRGB();
165+
void OnInitMenuPopup(CMenu* pMenu, UINT nIndex, BOOL bSysMenu);
166+
void UpdateMenu(CMenu* pMenu);
167+
void ToggleOnTop(bool bSetStatusbartext);
168+
void TestForWebsafe();
169+
void SetupTaskBarButton();
170+
void SetupTrayIcon();
171+
void SetupSystemMenu();
172+
void SetupWindowRects();
173+
bool LoadPersistentVariables();
174+
bool AveragePixelArea(HDC hdc, int* m_Reddec, int* m_Greendec, int* m_Bluedec, CPoint point);
175+
void SetupStatusBar();
176+
void SetStatusBarText(LPCTSTR statusText);
177+
int RangeCheck(int icolorval);
178+
void AdvanceColorHistory();
179+
void GetHistoryColor(int Cindex);
180+
HBITMAP CopyBitmap(HBITMAP hBitmapSrc);
181+
bool isWebsafeColor(int R, int G, int B);
182+
CString GetTempFolder();
183+
BOOL GetShellFolderPath(char* pShellFolder, char* pShellPath);
184+
185+
void SetStatusBarText(UINT strResource, int toggleVal);
186+
187+
void CalcColorPal();
188+
double shiftHue(double hue);
189+
void setSeedColor();
190+
void RGBtoHSL(double R, double G, double B);
191+
void HSLtoRGB(double H, double S, double L);
192+
void setupSwatches();
193+
void handleShifts();
194+
void printSwatch();
195+
double plusValue(double num);
196+
double minusValue(double num);
197+
void RecalcZoom();
198+
void FireOptionMenu();
199+
PBITMAPINFO CreateBitmapInfoStruct(HWND hwnd, HBITMAP hBmp);
200+
void CreateBMPFile(HWND hwnd, LPTSTR pszFile, PBITMAPINFO pbi, HBITMAP hBMP, HDC hDC);
201+
void UpdateCMYKFromRGB(int red, int green, int blue);
202+
void ChangeColorSpace(bool bRGB);
201203

202204
// Generated message map functions
203205
//{{AFX_MSG(CColorCopDlg) // NOLINT(whitespace/comments)

0 commit comments

Comments
 (0)