Put up hourglasses while making people wait.

This commit is contained in:
Mike Crowe 2006-05-30 13:15:27 +00:00
parent 50f24f23b4
commit 721b7d4e27
3 changed files with 12 additions and 0 deletions

View File

@ -32,6 +32,8 @@ LRESULT CAboutPage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lPar
void CAboutPage::FillVersionList()
{
CWaitCursor wait;
m_versions.Empty();
// Initialise the list control

View File

@ -21,6 +21,8 @@
LRESULT CAdvancedPage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CWaitCursor wait;
IniFile ini(GetApplication()->GetConfigPath());
m_server_port = ini.GetInteger(_T("general"), _T("port"), 9999);
@ -108,6 +110,8 @@ void CAdvancedPage::UpdateControls(Service::Status status)
int CAdvancedPage::OnApply()
{
CWaitCursor wait;
ATLTRACE("CAdvancedPage::OnApply\n");
if (!DoDataExchange(true))
@ -149,6 +153,8 @@ LRESULT CAdvancedPage::OnStopService(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*
LRESULT CAdvancedPage::OnWebAdmin(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
CWaitCursor wait;
// Go to the config file because we might not have committed a change yet.
IniFile ini(GetApplication()->GetConfigPath());
unsigned int port = ini.GetInteger(_T("general"), _T("port"), 9999);

View File

@ -21,6 +21,8 @@
LRESULT CConfigPage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CWaitCursor wait;
IniFile ini(GetApplication()->GetConfigPath());
m_server_name = ini.GetString(_T("general"), _T("servername"), _T("Firefly media server"));
@ -52,6 +54,8 @@ void CConfigPage::EnableControls()
int CConfigPage::OnApply()
{
CWaitCursor wait;
ATLTRACE("CConfigPage::OnApply\n");
if (!DoDataExchange(true))
return false;