Cosmetic changes here and there.

This commit is contained in:
Birunthan Mohanathas
2010-09-21 11:09:36 +00:00
parent e812e079ec
commit e618ad1777
13 changed files with 37 additions and 36 deletions

View File

@ -139,7 +139,7 @@ double Update2(UINT id)
}
else
{
LSLog(LOG_DEBUG, L"Rainmeter", L"PerfMon plugin works only in Win2K/XP.");
LSLog(LOG_DEBUG, L"Rainmeter", L"PerfMon plugin works only in Win2K and later.");
}
}
}

View File

@ -162,7 +162,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
}
else
{
LSLog(LOG_DEBUG, L"Rainmeter", L"Unable to initialize Windows Sockets");
LSLog(LOG_DEBUG, L"Rainmeter", L"Unable to initialize Windows Sockets.");
}
}
valid = true;

View File

@ -102,7 +102,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
{
std::wstring error = L"No such RecycleType: ";
error += type;
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK);
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK | MB_TOPMOST | MB_ICONEXCLAMATION);
}
}

View File

@ -115,7 +115,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
{
std::wstring error = L"No such GDICountType: ";
error += type;
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK);
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK | MB_TOPMOST | MB_ICONEXCLAMATION);
}
}

View File

@ -113,7 +113,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
{
std::wstring error = L"No such SpeedFanScale: ";
error += scale;
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK);
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK | MB_TOPMOST | MB_ICONEXCLAMATION);
}
}
}
@ -129,7 +129,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
{
std::wstring error = L"No such SpeedFanType: ";
error += type;
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK);
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK | MB_TOPMOST | MB_ICONEXCLAMATION);
}
}

View File

@ -209,7 +209,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
{
std::wstring error = L"No such SysInfoType: ";
error += type;
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK);
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK | MB_TOPMOST | MB_ICONEXCLAMATION);
}
}
@ -435,8 +435,8 @@ double Update2(UINT id)
{
if(GetSystemMetrics(SM_CMONITORS)>32)
{
std::wstring error = L"That's alot of monitors! 32 is the max. ";
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK);
std::wstring error = L"That's alot of monitors! 32 is the max.";
MessageBox(NULL, error.c_str(), L"Rainmeter", MB_OK | MB_TOPMOST | MB_ICONERROR);
exit(-1);
}
m_Monitors.count = 0;

View File

@ -106,6 +106,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
if(( ERROR_SUCCESS != dwErr) || (&pIntfList->dwNumberOfItems <= 0)){
WCHAR buffer[256];
wsprintf(buffer, L"WifiStatus.dll: Unable to find any WLAN interfaces/adapters. Error code %d",(int) dwErr);
Log(buffer);
return 0;
}
}