From aa2a9c2c4306aee50d1cdeb6b9259257910145fb Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 13 Mar 2007 03:43:30 +0000 Subject: [PATCH] Add shield icon to start/stop server button. --- win32/FireflyShell/AdvancedPage.cpp | 3 +++ win32/FireflyShell/MainDlg.cpp | 1 + win32/FireflyShell/stdafx.h | 2 +- win32/svcctrl/stdafx.h | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/win32/FireflyShell/AdvancedPage.cpp b/win32/FireflyShell/AdvancedPage.cpp index b9542f32..59b88d95 100644 --- a/win32/FireflyShell/AdvancedPage.cpp +++ b/win32/FireflyShell/AdvancedPage.cpp @@ -47,6 +47,9 @@ LRESULT CAdvancedPage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*l } UpdateControls(); + GetDlgItem(IDC_STARTSERVICE).SendMessage(BCM_SETSHIELD,0,TRUE); + GetDlgItem(IDC_STOPSERVICE).SendMessage(BCM_SETSHIELD,0,TRUE); + GetApplication()->ServiceStatusSubscribe(this); return 0; } diff --git a/win32/FireflyShell/MainDlg.cpp b/win32/FireflyShell/MainDlg.cpp index 0ee6a4c9..d3ea0a61 100644 --- a/win32/FireflyShell/MainDlg.cpp +++ b/win32/FireflyShell/MainDlg.cpp @@ -29,6 +29,7 @@ CMainDlg::CMainDlg(bool move_window) this->AddPage(m_pageAbout); ATLVERIFY(m_strTitle.LoadString(IDR_MAINFRAME)); + this->SetTitle(m_strTitle); } diff --git a/win32/FireflyShell/stdafx.h b/win32/FireflyShell/stdafx.h index 7892a721..fd905143 100644 --- a/win32/FireflyShell/stdafx.h +++ b/win32/FireflyShell/stdafx.h @@ -18,7 +18,7 @@ // Change these values to use different versions #define WINVER 0x0400 -#define _WIN32_WINNT 0x0501 +#define _WIN32_WINNT 0x0600 #define _WIN32_IE 0x0500 #define _RICHEDIT_VER 0x0100 diff --git a/win32/svcctrl/stdafx.h b/win32/svcctrl/stdafx.h index bb3a32e0..aa16b964 100644 --- a/win32/svcctrl/stdafx.h +++ b/win32/svcctrl/stdafx.h @@ -14,7 +14,7 @@ #endif #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. -#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. +#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. #endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.