diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-27 18:07:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-27 18:07:41 +0000 |
commit | 1c6adee432acbc6ea6e8f7108d972d85f1017232 (patch) | |
tree | 63c053f199c8c928f3911c2a1a719b853104d7a2 /plugins/FavContacts/src | |
parent | 86f31d8f021efa4145a6a67a775f5b72ffc5348d (diff) |
fixes for StatusIconData initialization
git-svn-id: http://svn.miranda-ng.org/main/trunk@5863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FavContacts/src')
-rw-r--r-- | plugins/FavContacts/src/main.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp index 2350138fdd..0081078862 100644 --- a/plugins/FavContacts/src/main.cpp +++ b/plugins/FavContacts/src/main.cpp @@ -532,12 +532,10 @@ static BOOL sttDrawItem_Group(LPDRAWITEMSTRUCT lpdis, Options *options = NULL) if (options->bSysColors)
{
FillRect(lpdis->hDC, &lpdis->rcItem, GetSysColorBrush(COLOR_HIGHLIGHT));
- //FrameRect(lpdis->hDC, &lpdis->rcItem, GetSysColorBrush(COLOR_HIGHLIGHT));
SetTextColor(lpdis->hDC, GetSysColor(COLOR_HIGHLIGHTTEXT));
- } else
- {
- HBRUSH hbr;
- hbr = CreateSolidBrush(g_Options.clBackSel);
+ }
+ else {
+ HBRUSH hbr = CreateSolidBrush(g_Options.clBackSel);
FillRect(lpdis->hDC, &lpdis->rcItem, hbr);
DeleteObject(hbr);
//hbr = CreateSolidBrush(g_Options.clBackSel);
@@ -998,8 +996,7 @@ int ProcessSrmmEvent( WPARAM wParam, LPARAM lParam ) WindowList_Add(hDialogsList, event->hwndWindow, event->hContact);
BYTE fav = db_get_b(event->hContact, "FavContacts", "IsFavourite", 0);
- StatusIconData sid = {0};
- sid.cbSize = sizeof(sid);
+ StatusIconData sid = { sizeof(sid) };
sid.szModule = "FavContacts";
sid.flags = fav ? 0 : MBF_DISABLED;
Srmm_ModifyIcon(event->hContact, &sid);
|