diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-06 15:53:56 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-06 15:53:56 +0000 |
commit | dfb0aa1c75afe673581e8cfdc83e1a58a9314c2a (patch) | |
tree | 0d5f99a4a81ba6f61c3d651f8618e449724a85d3 /plugins/BossKeyPlus | |
parent | 01309881adec37e7d055d3fc5c325b74dc9ae098 (diff) |
small cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BossKeyPlus')
-rw-r--r-- | plugins/BossKeyPlus/src/BossKey.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 23a52f1ef7..87bbb5cb6d 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -174,7 +174,8 @@ INT_PTR CALLBACK DlgStdInProc(HWND hDlg, UINT uMsg,WPARAM wParam,LPARAM lParam) return FALSE;
}
- }return FALSE;
+ }
+ return FALSE;
}
static void LanguageChanged(HWND hDlg)
@@ -308,7 +309,7 @@ static int BackAllProtoStatuses(void) static void CreateTrayIcon(bool create)
{
- NOTIFYICONDATA nim;
+ NOTIFYICONDATA nim;
DBVARIANT dbVar;
if (!db_get_ts(NULL,MOD_NAME,"ToolTipText",&dbVar))
{
@@ -318,12 +319,12 @@ static void CreateTrayIcon(bool create) else
lstrcpy(nim.szTip, _T("Miranda NG"));
- nim.cbSize = sizeof(nim);
- nim.hWnd = g_hListenWindow;
- nim.uID = 100;
- nim.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
- nim.hIcon = Skin_GetIcon("hidemim");
- nim.uCallbackMessage = WM_USER + 24;
+ nim.cbSize = sizeof(nim);
+ nim.hWnd = g_hListenWindow;
+ nim.uID = 100;
+ nim.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
+ nim.hIcon = Skin_GetIcon("hidemim");
+ nim.uCallbackMessage = WM_USER + 24;
Shell_NotifyIcon(create ? NIM_ADD : NIM_DELETE, &nim);
g_TrayIcon = create;
}
@@ -336,7 +337,7 @@ static void RestoreOldSettings(void) if (g_bOldSetting & OLD_SOUND)
db_set_b(NULL,"Skin","UseSound", 1);
- if (g_bOldSetting & OLD_FLTCONT) // show Floating contacts if needed
+ if (g_bOldSetting & OLD_FLTCONT) // show Floating contacts if needed
{
if(ServiceExists("FloatingContacts/MainHideAllThumbs"))
CallService("FloatingContacts/MainHideAllThumbs",0,0);
@@ -520,7 +521,7 @@ LRESULT CALLBACK ListenWndProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) static int MsgWinOpening(WPARAM wParam, LPARAM lParam) // hiding new message windows
{
if (g_bWindowHidden)
- EnumWindows(EnumWindowsProc,0);
+ EnumWindows(EnumWindowsProc, 0);
return 0;
}
@@ -803,8 +804,6 @@ int MirandaLoaded(WPARAM wParam,LPARAM lParam) return(0);
}
-
-
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
|