Code cleanup.

This commit is contained in:
spx 2011-08-28 16:42:34 +00:00
parent b52fd99949
commit f84b44a9f0
3 changed files with 18 additions and 3 deletions

View File

@ -3937,6 +3937,7 @@ void CMeterWindow::SetSnapEdges(bool b)
m_SnapEdges = b; m_SnapEdges = b;
WriteConfig(SETTING_SNAPEDGES); WriteConfig(SETTING_SNAPEDGES);
} }
/* /*
** SetWindowHide ** SetWindowHide
** **

View File

@ -1202,7 +1202,18 @@ void RainmeterLsHook(HWND, const char* arg)
*/ */
void RainmeterAbout(HWND, const char* arg) void RainmeterAbout(HWND, const char* arg)
{ {
RainmeterAboutWide(); RainmeterAboutWide(ConvertToWide(arg).c_str());
}
/*
** RainmeterManage
**
** Callback for the !RainmeterManage bang
**
*/
void RainmeterManage(HWND, const char* arg)
{
RainmeterManageWide(ConvertToWide(arg).c_str());
} }
/* /*
@ -1455,9 +1466,9 @@ void RainmeterAboutWide(const WCHAR* arg)
} }
/* /*
** RainmeterManagerWide ** RainmeterManageWide
** **
** Callback for the !RainmeterAbout bang ** Callback for the !RainmeterManage bang
** **
*/ */
void RainmeterManageWide(const WCHAR* arg) void RainmeterManageWide(const WCHAR* arg)
@ -2131,6 +2142,7 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath)
AddBangCommand("!RainmeterRefreshApp", RainmeterRefreshApp); AddBangCommand("!RainmeterRefreshApp", RainmeterRefreshApp);
AddBangCommand("!RainmeterLsBoxHook", RainmeterLsHook); AddBangCommand("!RainmeterLsBoxHook", RainmeterLsHook);
AddBangCommand("!RainmeterAbout", RainmeterAbout); AddBangCommand("!RainmeterAbout", RainmeterAbout);
AddBangCommand("!RainmeterManage", RainmeterManage);
AddBangCommand("!RainmeterSkinMenu", RainmeterSkinMenu); AddBangCommand("!RainmeterSkinMenu", RainmeterSkinMenu);
AddBangCommand("!RainmeterTrayMenu", RainmeterTrayMenu); AddBangCommand("!RainmeterTrayMenu", RainmeterTrayMenu);
AddBangCommand("!RainmeterResetStats", RainmeterResetStats); AddBangCommand("!RainmeterResetStats", RainmeterResetStats);
@ -2554,6 +2566,7 @@ void CRainmeter::Quit(HINSTANCE dllInst)
RemoveBangCommand("!RainmeterRefreshApp"); RemoveBangCommand("!RainmeterRefreshApp");
RemoveBangCommand("!RainmeterLsBoxHook"); RemoveBangCommand("!RainmeterLsBoxHook");
RemoveBangCommand("!RainmeterAbout"); RemoveBangCommand("!RainmeterAbout");
RemoveBangCommand("!RainmeterManage");
RemoveBangCommand("!RainmeterSkinMenu"); RemoveBangCommand("!RainmeterSkinMenu");
RemoveBangCommand("!RainmeterTrayMenu"); RemoveBangCommand("!RainmeterTrayMenu");
RemoveBangCommand("!RainmeterResetStats"); RemoveBangCommand("!RainmeterResetStats");

View File

@ -107,6 +107,7 @@ void RainmeterSetOptionGroup(HWND, const char* arg);
void RainmeterLsHook(HWND, const char* arg); void RainmeterLsHook(HWND, const char* arg);
void RainmeterAbout(HWND, const char* arg); void RainmeterAbout(HWND, const char* arg);
void RainmeterManage(HWND, const char* arg);
void RainmeterSkinMenu(HWND, const char* arg); void RainmeterSkinMenu(HWND, const char* arg);
void RainmeterTrayMenu(HWND, const char* arg); void RainmeterTrayMenu(HWND, const char* arg);
void RainmeterResetStats(HWND, const char* arg); void RainmeterResetStats(HWND, const char* arg);