[commit] r1845 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Feb 28 14:33:32 CST 2012


Author: ksmyth
Date: Tue Feb 28 14:33:32 2012
New Revision: 1845

Log:
Show arch in about box

Modified:
   trunk/GME/Gme/AboutDlg.cpp

Modified: trunk/GME/Gme/AboutDlg.cpp
==============================================================================
--- trunk/GME/Gme/AboutDlg.cpp	Tue Feb 28 14:33:22 2012	(r1844)
+++ trunk/GME/Gme/AboutDlg.cpp	Tue Feb 28 14:33:32 2012	(r1845)
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 
+#include "GMEVersion.h"
 #include "GMEApp.h"
 /////////////////////////////////////////////////////////////////////////////
 // CAboutDlg dialog used for App About
@@ -70,6 +71,17 @@
 {
 	CDialog::OnInitDialog();
 	
+	CStatic* version = (CStatic*)GetWindow(GW_CHILD);
+	ASSERT(version);
+
+#if defined(_M_IX86)
+	version->SetWindowTextW(CString(GME_VERSION_STR) + " x86");
+#elif defined(_M_X64)
+	version->SetWindowTextW(CString(GME_VERSION_STR) + " x64");
+#else
+#error Unknown arch
+#endif
+
 	CRect rectAbout;
 	GetClientRect( rectAbout );
 	CBitmap bmpAbout;


More information about the gme-commit mailing list