summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-03 20:16:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-03 20:16:42 +0000
commitf12d8b56f2894e94491bd7424d69f595d285f01f (patch)
tree3f54d66c8c248bb456da1cb0c5cc31661f144e5f /plugins/Clist_mw
parent1b1a54dc156bec90be3ddc337c17b4e67179d4ea (diff)
no more MS_CLIST_EXTRA_ADD_ICON in the application code
git-svn-id: http://svn.miranda-ng.org/main/trunk@2175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw')
-rw-r--r--plugins/Clist_mw/src/CLUIFrames/extraimage.cpp23
1 files changed, 4 insertions, 19 deletions
diff --git a/plugins/Clist_mw/src/CLUIFrames/extraimage.cpp b/plugins/Clist_mw/src/CLUIFrames/extraimage.cpp
index d84b30a9fa..70f4560856 100644
--- a/plugins/Clist_mw/src/CLUIFrames/extraimage.cpp
+++ b/plugins/Clist_mw/src/CLUIFrames/extraimage.cpp
@@ -159,17 +159,6 @@ INT_PTR AddIconToExtraImageList(WPARAM wParam,LPARAM lParam)
return((int)ImageList_AddIcon(hExtraImageList,(HICON)wParam));
}
-void SetNewExtraColumnCount()
-{
- int newcount;
-
- GetVisColumns();
- newcount = colsum(0,EXTRACOLUMNCOUNT-1);
- DBWriteContactSettingByte(NULL,CLUIFrameModule,"EnabledColumnCount",(BYTE)newcount);
- EnabledColumnCount = newcount;
- SendMessage(pcli->hwndContactTree,CLM_SETEXTRACOLUMNS,EnabledColumnCount,0);
-}
-
int OnIconLibIconChanged(WPARAM wParam,LPARAM lParam)
{
HICON hicon;
@@ -221,9 +210,7 @@ void ReloadExtraIcons()
}
SendMessage(pcli->hwndContactTree,CLM_SETEXTRAIMAGELIST,0,(LPARAM)hExtraImageList);
-
- //SetAllExtraIcons(hImgList);
- SetNewExtraColumnCount();
+ SendMessage(pcli->hwndContactTree,CLM_SETEXTRACOLUMNS,EnabledColumnCount,0);
NotifyEventHooks(hExtraImageListRebuilding,0,0);
ImageCreated = TRUE;
}
@@ -233,7 +220,7 @@ void ClearExtraIcons();
void ReAssignExtraIcons()
{
ClearExtraIcons();
- SetNewExtraColumnCount();
+ SendMessage(pcli->hwndContactTree,CLM_SETEXTRACOLUMNS, EXTRACOLUMNCOUNT, 0);
SetAllExtraIcons(pcli->hwndContactTree,0);
SendMessage(pcli->hwndContactTree,CLM_AUTOREBUILD,0,0);
}
@@ -243,9 +230,7 @@ void ClearExtraIcons()
int i;
HANDLE hContact,hItem;
- //EnabledColumnCount = DBGetContactSettingByte(NULL,CLUIFrameModule,"EnabledColumnCount",5);
- //SendMessage(pcli->hwndContactTree,CLM_SETEXTRACOLUMNS,EnabledColumnCount,0);
- SetNewExtraColumnCount();
+ SendMessage(pcli->hwndContactTree,CLM_SETEXTRACOLUMNS, EXTRACOLUMNCOUNT, 0);
hContact = db_find_first();
do {
@@ -278,7 +263,7 @@ void SetAllExtraIcons(HWND hwndList,HANDLE hContact)
tick = GetTickCount();
if (ImageCreated == FALSE) ReloadExtraIcons();
- SetNewExtraColumnCount();
+ SendMessage(pcli->hwndContactTree,CLM_SETEXTRACOLUMNS, EXTRACOLUMNCOUNT, 0);
hasExtraIconsService = HasExtraIconsService();
if (!hasExtraIconsService) {