Changeset 166 for trunk/Utilities/StressEvr/AboutDialog.h
- Timestamp:
- Jan 21, 2013, 11:31:52 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/StressEvr/AboutDialog.h
r56 r166 1 1 //////////////////////////////////////////////////////////// 2 // Copyright (C) Roman Ryltsov, 200 8-20112 // Copyright (C) Roman Ryltsov, 2009-2012 3 3 // Created by Roman Ryltsov roman@alax.info 4 4 // … … 71 71 { 72 72 CStatic(GetDlgItem(IDC_ABOUT_ICON)).SetIcon(AtlLoadIconImage(IDI_MODULE, LR_DEFAULTCOLOR, 48, 48)); 73 #pragma region Create and apply title font73 #pragma region Title Font 74 74 m_TitleFont = CreateTitleFont(); 75 75 CStatic(GetDlgItem(IDC_ABOUT_TITLE)).SetFont(m_TitleFont); 76 76 #pragma endregion 77 #pragma region Create and apply disclaimer font77 #pragma region Disclaimer Font 78 78 { 79 79 m_DisclaimerFont = CreateDisclaimerFont(); … … 100 100 } 101 101 #pragma endregion 102 #pragma region Update version text102 #pragma region Version Text 103 103 CStatic ProductVersionStatic = GetDlgItem(IDC_ABOUT_PRODUCTVERSION), FileVersionStatic = GetDlgItem(IDC_ABOUT_FILEVERSION); 104 104 CString sProductVersionFormat, sFileVersionFormat; … … 109 109 FileVersionStatic.SetWindowText(_VersionInfoHelper::GetVersionString(_VersionInfoHelper::GetFileVersion(sModulePath), sFileVersionFormat)); 110 110 #pragma endregion 111 #pragma region Update hyperlinks111 #pragma region Hyperlinks 112 112 _W(m_WebsiteHyperStatic.SubclassWindow(GetDlgItem(IDC_ABOUT_WEBSITE))); 113 113 _W(m_EmailHyperStatic.SubclassWindow(GetDlgItem(IDC_ABOUT_EMAIL))); 114 114 #pragma endregion 115 #pragma region Update caption115 #pragma region Caption 116 116 { 117 #if _TRACE 117 #if _TRACE || defined(_WIN64) 118 118 CString sCaption; 119 119 _W(GetWindowText(sCaption)); 120 120 sCaption.Append(_T(" // ")); 121 #if _DEVELOPMENT121 #if _DEVELOPMENT 122 122 sCaption.Append(_T("Dev ")); 123 #endif // _DEVELOPMENT123 #endif // _DEVELOPMENT 124 124 sCaption.Append(_VersionInfoHelper::GetVersionString(_VersionInfoHelper::GetFileVersion(_VersionInfoHelper::GetModulePath()))); 125 #if defined(_WIN64) 126 sCaption.Append(_T(" (x64)")); 127 #endif // defined(_WIN64) 125 128 _W(SetWindowText(sCaption)); 126 #endif // _TRACE 129 #endif // _TRACE || defined(_WIN64) 127 130 } 128 131 #pragma endregion 129 #pragma region Update window position and focus132 #pragma region Window Position and Focus 130 133 _W(CenterWindow(GetParent())); 131 134 GetDlgItem(IDOK).SetFocus();
Note: See TracChangeset
for help on using the changeset viewer.