Hi

I would greatly appreciated this issue to be solved for plugin clist_mw. I already have some experiences with C++ and WindAPI so i tried it myself and it ended like this. (Diffs were created using TortoiseSVN)

miranda/include/m_clist.h
Code:
@@ -608,6 +608,7 @@
 #define SETTING_SHOWMAINMENU_DEFAULT 1
 #define SETTING_SHOWCAPTION_DEFAULT  1
 #define SETTING_CLIENTDRAG_DEFAULT   1
+#define SETTING_DOCKABLE_DEFAULT     1
 #define SETTING_ONTOP_DEFAULT        0
 #define SETTING_MIN2TRAY_DEFAULT     1
 #define SETTING_TRAY1CLICK_DEFAULT   (IsWinVer7Plus()?1:0)
miranda/plugins/mwclist/cluiopts.c
Code:
@@ -32,7 +32,7 @@
 extern int UseOwnerDrawStatusBar;
 extern int OnStatusBarBackgroundChange();
 
-static UINT expertOnlyControls[]={IDC_BRINGTOFRONT, IDC_AUTOSIZE,IDC_STATIC21,IDC_MAXSIZEHEIGHT,IDC_MAXSIZESPIN,IDC_STATIC22,IDC_AUTOSIZEUPWARD,IDC_SHOWMAINMENU,IDC_SHOWCAPTION,IDC_CLIENTDRAG};
+static UINT expertOnlyControls[]={IDC_BRINGTOFRONT, IDC_AUTOSIZE,IDC_STATIC21,IDC_MAXSIZEHEIGHT,IDC_MAXSIZESPIN,IDC_STATIC22,IDC_AUTOSIZEUPWARD,IDC_SHOWMAINMENU,IDC_SHOWCAPTION,IDC_CLIENTDRAG,IDC_DOCKABLE};
 int CluiOptInit(WPARAM wParam,LPARAM lParam)
 {
 	OPTIONSDIALOGPAGE odp;

@@ -75,6 +75,7 @@
 CheckDlgButton(hwndDlg, IDC_SHOWCAPTION, DBGetContactSettingByte(NULL,"CLUI","ShowCaption",SETTING_SHOWCAPTION_DEFAULT) ? BST_CHECKED : BST_UNCHECKED);
 CheckDlgButton(hwndDlg, IDC_SHOWMAINMENU, DBGetContactSettingByte(NULL,"CLUI","ShowMainMenu",SETTING_SHOWMAINMENU_DEFAULT) ? BST_CHECKED : BST_UNCHECKED);
 CheckDlgButton(hwndDlg, IDC_CLIENTDRAG, DBGetContactSettingByte(NULL,"CLUI","ClientAreaDrag",SETTING_CLIENTDRAG_DEFAULT) ? BST_CHECKED : BST_UNCHECKED);
+CheckDlgButton(hwndDlg, IDC_DOCKABLE, DBGetContactSettingByte(NULL,"CLUI","DockToSides",SETTING_DOCKABLE_DEFAULT) ? BST_CHECKED : BST_UNCHECKED);
 if(!IsDlgButtonChecked(hwndDlg,IDC_SHOWCAPTION)) {
 	EnableWindow(GetDlgItem(hwndDlg,IDC_MIN2TRAY),FALSE);
 	EnableWindow(GetDlgItem(hwndDlg,IDC_TOOLWND),FALSE);

@@ -263,6 +264,7 @@
 DBWriteContactSettingByte(NULL,"CLUI","ShowCaption",(BYTE)IsDlgButtonChecked(hwndDlg,IDC_SHOWCAPTION));
 DBWriteContactSettingByte(NULL,"CLUI","ShowMainMenu",(BYTE)IsDlgButtonChecked(hwndDlg,IDC_SHOWMAINMENU));
 DBWriteContactSettingByte(NULL,"CLUI","ClientAreaDrag",(BYTE)IsDlgButtonChecked(hwndDlg,IDC_CLIENTDRAG));
+DBWriteContactSettingByte(NULL,"CLUI","DockToSides",(BYTE)IsDlgButtonChecked(hwndDlg,IDC_DOCKABLE));
miranda/plugins/mwclist/resource.h
Code:
@@ -223,6 +223,7 @@
 #define IDC_ONTOP                       1074
 #define IDC_SHOWMAINMENU                1075
 #define IDC_CLIENTDRAG                  1076
+#define IDC_DOCKABLE	                 1077
 #define IDC_EDIT                        1078
 #define IDC_LIST                        1079
 #define IDC_HISTORY                     1080
miranda/plugins/mwclist/resource.rc
Code:
Modification of options panel.
Too big to be posted here, but most of it are changes of positions.
Edited using MSVC2010 design tool