diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-28 09:53:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-28 09:53:15 +0000 |
commit | d2d076e523b7a5a10507fba40f58543a386dbec0 (patch) | |
tree | 0576e5629cb3a0ce937445f627e67d6fd7480d4b /src/modules/findadd/searchresults.cpp | |
parent | 9a89e7b722cffaaa4343a109e173e4fcde367f1c (diff) |
Find/Add user dialog optimization: manually drawn bitmaps replaced with Windows native
git-svn-id: http://svn.miranda-ng.org/main/trunk@7404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/findadd/searchresults.cpp')
-rw-r--r-- | src/modules/findadd/searchresults.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/findadd/searchresults.cpp b/src/modules/findadd/searchresults.cpp index 1efff177d4..95b4c2826e 100644 --- a/src/modules/findadd/searchresults.cpp +++ b/src/modules/findadd/searchresults.cpp @@ -113,9 +113,8 @@ void LoadColumnSizes(HWND hwndResults, const char *szProto) if (dat->iLastColumnSortIndex >= columnCount) dat->iLastColumnSortIndex = COLUMNID_NICK;
dat->bSortAscending = db_get_b(NULL, "FindAdd", "SortAscending", TRUE);
- hdi.mask = HDI_BITMAP | HDI_FORMAT;
- hdi.fmt = HDF_LEFT | HDF_BITMAP | HDF_STRING | HDF_BITMAP_ON_RIGHT;
- hdi.hbm = dat->bSortAscending ? dat->hBmpSortDown : dat->hBmpSortUp;
+ hdi.mask = HDI_FORMAT;
+ hdi.fmt = HDF_LEFT | HDF_STRING | (dat->bSortAscending ? HDF_SORTDOWN : HDF_SORTUP);
Header_SetItem(ListView_GetHeader(hwndResults), dat->iLastColumnSortIndex, &hdi);
}
|