Add shield icon to start/stop server button.

This commit is contained in:
Ron Pedde 2007-03-13 03:43:30 +00:00
parent 63b49ffd04
commit aa2a9c2c43
4 changed files with 6 additions and 2 deletions

View File

@ -47,6 +47,9 @@ LRESULT CAdvancedPage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*l
} }
UpdateControls(); UpdateControls();
GetDlgItem(IDC_STARTSERVICE).SendMessage(BCM_SETSHIELD,0,TRUE);
GetDlgItem(IDC_STOPSERVICE).SendMessage(BCM_SETSHIELD,0,TRUE);
GetApplication()->ServiceStatusSubscribe(this); GetApplication()->ServiceStatusSubscribe(this);
return 0; return 0;
} }

View File

@ -29,6 +29,7 @@ CMainDlg::CMainDlg(bool move_window)
this->AddPage(m_pageAbout); this->AddPage(m_pageAbout);
ATLVERIFY(m_strTitle.LoadString(IDR_MAINFRAME)); ATLVERIFY(m_strTitle.LoadString(IDR_MAINFRAME));
this->SetTitle(m_strTitle); this->SetTitle(m_strTitle);
} }

View File

@ -18,7 +18,7 @@
// Change these values to use different versions // Change these values to use different versions
#define WINVER 0x0400 #define WINVER 0x0400
#define _WIN32_WINNT 0x0501 #define _WIN32_WINNT 0x0600
#define _WIN32_IE 0x0500 #define _WIN32_IE 0x0500
#define _RICHEDIT_VER 0x0100 #define _RICHEDIT_VER 0x0100

View File

@ -14,7 +14,7 @@
#endif #endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. #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 #endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.