Skip to content

Commit

Permalink
Issue #2 - but all attempts to use the TIDY2_VERSION define failed
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffmcl committed May 18, 2017
1 parent 87e3ebc commit 006de37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tidy2/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Binary file modified Tidy2/VersionAndAbout.rc
Binary file not shown.
Binary file modified Tidy2/resource.h
Binary file not shown.

0 comments on commit 006de37

Please sign in to comment.