diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-26 18:39:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-26 18:39:48 +0000 |
commit | 3f00912895ae0820b4db9ae7081f5ffcba1b074c (patch) | |
tree | d9524551ee0fa19ffb93e7035de334962900dd40 /plugins/MirFox/src/MirandaOptions.cpp | |
parent | 535d64f23c465e90f0743108b247563dc2387af7 (diff) |
stupid duplicated code of embedded clists removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirFox/src/MirandaOptions.cpp')
-rw-r--r-- | plugins/MirFox/src/MirandaOptions.cpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/plugins/MirFox/src/MirandaOptions.cpp b/plugins/MirFox/src/MirandaOptions.cpp index c14edd8689..30595f53ea 100644 --- a/plugins/MirFox/src/MirandaOptions.cpp +++ b/plugins/MirFox/src/MirandaOptions.cpp @@ -302,32 +302,9 @@ static void setAllChildIcons(HWND hwndList, HANDLE hFirstItem, int iColumn, int /**
* set colors, margins, indents, styles etc of list
*/
-static void resetListOptions(HWND hwndList){
-
- //background image = null
- SendMessage(hwndList, CLM_SETBKBITMAP, 0, (LPARAM)(HBITMAP)NULL);
-
- //background color //TODO - colours
- SendMessage(hwndList, CLM_SETBKCOLOR, GetSysColor(COLOR_WINDOW), 0);
-
- //?
- SendMessage(hwndList, CLM_SETGREYOUTFLAGS, 0, 0);
-
- //left margin
- SendMessage(hwndList, CLM_SETLEFTMARGIN, 2, 0);
-
- //indent
- SendMessage(hwndList, CLM_SETINDENT, 10, 0);
-
- //font color //TODO - colours
- int i;
- for(i=0; i<=FONTID_MAX; i++){ // FONTID_MAX - miranda const
- SendMessage(hwndList, CLM_SETTEXTCOLOR, i, GetSysColor(COLOR_WINDOWTEXT));
- }
-
- //?
+static void resetListOptions(HWND hwndList)
+{
SetWindowLongPtr(hwndList, GWL_STYLE, GetWindowLongPtr(hwndList,GWL_STYLE)|CLS_SHOWHIDDEN);
-
}
|