summaryrefslogtreecommitdiff
path: root/Tests/MFC
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-03 08:37:23 -0400
committerDavid Cole <david.cole@kitware.com>2011-11-03 08:37:23 -0400
commita42e3f2bf915c510b43fd0f8c90f4716aab41541 (patch)
treeab890517a370ae05c47f9c2135da4eeb464c483c /Tests/MFC
parentb297da615aa2331a558a1c9aa8864e4db3e1f39a (diff)
downloadcmake-a42e3f2bf915c510b43fd0f8c90f4716aab41541.tar.gz
Tests: Fix MFC test for old vs6 dashboards (#11213)
The MFC test's mfc1 directory was a "VS-MFC-wizard-generated" starter MFC app, using VS 7.1 as the generator. There's one define used in the generated rc file that was not available back in the VS6 days... Put a conditional define in here based on _MSC_VER to enable the test app to build on VS6 dashboards.
Diffstat (limited to 'Tests/MFC')
-rw-r--r--Tests/MFC/mfc1/mfc1.rc8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/MFC/mfc1/mfc1.rc b/Tests/MFC/mfc1/mfc1.rc
index c960302598..346c5fb77d 100644
--- a/Tests/MFC/mfc1/mfc1.rc
+++ b/Tests/MFC/mfc1/mfc1.rc
@@ -198,9 +198,15 @@ END
// Dialog
//
+#if _MSC_VER < 1300
+#define DS_SHELLFONT_FLAG 0
+#else
+#define DS_SHELLFONT_FLAG DS_SHELLFONT
+#endif
+
IDD_ABOUTBOX DIALOGEX 0, 0, 235, 55
CAPTION "About mfc1"
-STYLE DS_MODALFRAME | DS_SHELLFONT | WS_POPUP | WS_CAPTION | WS_SYSMENU
+STYLE DS_MODALFRAME | DS_SHELLFONT_FLAG | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20