From 006de3764b54fdf64c26865a814222065f52054f Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Thu, 18 May 2017 03:18:54 +0200 Subject: [PATCH] Issue #2 - but all attempts to use the TIDY2_VERSION define failed --- Tidy2/AboutDialog.cpp | 12 ++++++++++++ Tidy2/VersionAndAbout.rc | Bin 7940 -> 7980 bytes Tidy2/resource.h | Bin 918 -> 1010 bytes 3 files changed, 12 insertions(+) diff --git a/Tidy2/AboutDialog.cpp b/Tidy2/AboutDialog.cpp index f8b721f..1cb700b 100644 --- a/Tidy2/AboutDialog.cpp +++ b/Tidy2/AboutDialog.cpp @@ -15,6 +15,18 @@ void AboutDialog::doDialog() if (!isCreated()) create(IDD_ABOUTDIALOG); +/* want to set the VERSION/DATE from the build 'version.txt' */ +#if 0 /* 00000000000000000 this FAILED? WHY? */ + // HWND hwnd = this.GetSafeHwnd(); // m_hWnd; + HWND label = GetDlgItem((HWND)this, IDC_VERSION); + if (label) + { + TCHAR buf[1024]; + swprintf(buf, sizeof(buf), _T("Using HTML Tidy date " TIDY2_DATE ", version " TIDY2_VERSION ", from https://github.com/htacg/tidy-html5")); + SetWindowText(label, buf); + } +#endif /* 0000000000000000000 */ + goToCenter(); } diff --git a/Tidy2/VersionAndAbout.rc b/Tidy2/VersionAndAbout.rc index 59e9e1d5abeb23bd7ded8e71bcd95c3e5289337f..c21acb5b391b7fa8f98dda8b2cfe08ee78ca4c29 100644 GIT binary patch delta 195 zcmZp%TVuE35)Zc_gARiNgCT<{gX!kGJeiD~CO`p024e=3$^Lw<+zJc@3^@#?4CxG+ zlmGL{ZeGWCfzdXFA(5ekAr+|4h`|7;*qlKRNSgvl5F2D(8Bn%}p_n0)A)g@+$Op-R zuo2MM#R7@EVGOPeK@7nRo(%pBev|nH#hHy63?>`$>rajlv}3mfnqkRcF?m0q>E=s< dZA^?Nlh?D0PRAT*uq&*!>%5#K9DRSgDH20bt~ zVlV-!HexUUDli9%8GuDWY|Y6h1rjH(P ZnHY^HH;TkF8!=c;{>UZ1`Im?h7Xa*q9i{*P diff --git a/Tidy2/resource.h b/Tidy2/resource.h index 943b6bf43ccaa5c8ea1480096284e6c81e2fe8a2..a8dd4268a5afd6eb7f174e3e248dde0d70e630ff 100644 GIT binary patch delta 78 zcmbQn{)v5q5u>UyLkdGGLmERSLmrS;VDMycVQ^-MX9#0(We8#j2J-zG{3Z)BiceNx a