summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-06 15:33:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-06 15:33:04 +0300
commit8221b8c22b4632c5f6c7f9f0ed6604f9a5d29c57 (patch)
tree25a1f6b07441ac891ee4f8a4e70bbc15e42d2688 /src
parent4ad2b9f2eea032d300179fcea453264dfd439ddc (diff)
useless commands removed
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clcmsgs.cpp28
-rw-r--r--src/mir_core/src/CCtrlClc.cpp28
-rw-r--r--src/mir_core/src/mir_core.def7
-rw-r--r--src/mir_core/src/mir_core64.def7
4 files changed, 0 insertions, 70 deletions
diff --git a/src/mir_app/src/clcmsgs.cpp b/src/mir_app/src/clcmsgs.cpp
index 55517ddc5a..811af59d11 100644
--- a/src/mir_app/src/clcmsgs.cpp
+++ b/src/mir_app/src/clcmsgs.cpp
@@ -185,9 +185,6 @@ LRESULT fnProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wPar
return CLCIT_INVALID;
return contact->type;
- case CLM_GETLEFTMARGIN:
- return dat->leftMargin;
-
case CLM_GETEXSTYLE:
return dat->exStyle;
@@ -304,17 +301,6 @@ LRESULT fnProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wPar
Clist_EnsureVisible(hwnd, dat, dat->selection, 0);
break;
- case CLM_SETBKBITMAP:
- if (dat->hBmpBackground) {
- DeleteObject(dat->hBmpBackground);
- dat->hBmpBackground = nullptr;
- }
- dat->hBmpBackground = (HBITMAP)lParam;
- dat->backgroundBmpUse = wParam;
- dat->bkChanged = 1;
- g_clistApi.pfnInvalidateRect(hwnd, nullptr, FALSE);
- break;
-
case CLM_SETBKCOLOR:
if (dat->hBmpBackground) {
DeleteObject(dat->hBmpBackground);
@@ -380,10 +366,6 @@ LRESULT fnProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wPar
g_clistApi.pfnInvalidateRect(hwnd, nullptr, FALSE);
break;
- case CLM_SETGREYOUTFLAGS:
- dat->greyoutFlags = wParam;
- break;
-
case CLM_SETHIDEEMPTYGROUPS:
if (wParam)
SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) | CLS_HIDEEMPTYGROUPS);
@@ -397,11 +379,6 @@ LRESULT fnProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wPar
Clist_InitAutoRebuild(hwnd);
break;
- case CLM_SETINDENT:
- dat->groupIndent = wParam;
- Clist_InitAutoRebuild(hwnd);
- break;
-
case CLM_SETITEMTEXT:
if (!Clist_FindItem(hwnd, dat, wParam, &contact))
break;
@@ -410,11 +387,6 @@ LRESULT fnProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wPar
g_clistApi.pfnInvalidateRect(hwnd, nullptr, FALSE);
break;
- case CLM_SETLEFTMARGIN:
- dat->leftMargin = wParam;
- g_clistApi.pfnInvalidateRect(hwnd, nullptr, FALSE);
- break;
-
case CLM_SETOFFLINEMODES:
dat->offlineModes = wParam;
Clist_InitAutoRebuild(hwnd);
diff --git a/src/mir_core/src/CCtrlClc.cpp b/src/mir_core/src/CCtrlClc.cpp
index bfc2b1e086..b070b5c8b4 100644
--- a/src/mir_core/src/CCtrlClc.cpp
+++ b/src/mir_core/src/CCtrlClc.cpp
@@ -138,10 +138,6 @@ void CCtrlClc::SelectItem(HANDLE hItem)
{ SendMessage(m_hwnd, CLM_SELECTITEM, (WPARAM)hItem, 0);
}
-void CCtrlClc::SetBkBitmap(DWORD mode, HBITMAP hBitmap)
-{ SendMessage(m_hwnd, CLM_SETBKBITMAP, mode, (LPARAM)hBitmap);
-}
-
void CCtrlClc::SetBkColor(COLORREF clBack)
{ SendMessage(m_hwnd, CLM_SETBKCOLOR, (WPARAM)clBack, 0);
}
@@ -166,10 +162,6 @@ void CCtrlClc::SetFont(int iFontId, HANDLE hFont, bool bRedraw)
{ SendMessage(m_hwnd, CLM_SETFONT, (WPARAM)hFont, MAKELPARAM(bRedraw ? 1 : 0, iFontId));
}
-void CCtrlClc::SetIndent(int iIndent)
-{ SendMessage(m_hwnd, CLM_SETINDENT, (WPARAM)iIndent, 0);
-}
-
void CCtrlClc::SetItemText(HANDLE hItem, char *szText)
{ SendMessage(m_hwnd, CLM_SETITEMTEXT, (WPARAM)hItem, (LPARAM)szText);
}
@@ -178,10 +170,6 @@ void CCtrlClc::SetHideEmptyGroups(bool state)
{ SendMessage(m_hwnd, CLM_SETHIDEEMPTYGROUPS, state ? 1 : 0, 0);
}
-void CCtrlClc::SetGreyoutFlags(DWORD flags)
-{ SendMessage(m_hwnd, CLM_SETGREYOUTFLAGS, (WPARAM)flags, 0);
-}
-
bool CCtrlClc::GetHideOfflineRoot()
{ return SendMessage(m_hwnd, CLM_GETHIDEOFFLINEROOT, 0, 0) ? true : false;
}
@@ -206,14 +194,6 @@ void CCtrlClc::SetExStyle(DWORD exStyle)
{ SendMessage(m_hwnd, CLM_SETEXSTYLE, (WPARAM)exStyle, 0);
}
-int CCtrlClc::GetLefrMargin()
-{ return SendMessage(m_hwnd, CLM_GETLEFTMARGIN, 0, 0);
-}
-
-void CCtrlClc::SetLeftMargin(int iMargin)
-{ SendMessage(m_hwnd, CLM_SETLEFTMARGIN, (WPARAM)iMargin, 0);
-}
-
HANDLE CCtrlClc::AddInfoItem(CLCINFOITEM *cii)
{ return (HANDLE)SendMessage(m_hwnd, CLM_ADDINFOITEM, 0, (LPARAM)cii);
}
@@ -225,11 +205,3 @@ int CCtrlClc::GetItemType(HANDLE hItem)
HANDLE CCtrlClc::GetNextItem(HANDLE hItem, DWORD flags)
{ return (HANDLE)SendMessage(m_hwnd, CLM_GETNEXTITEM, (WPARAM)flags, (LPARAM)hItem);
}
-
-COLORREF CCtrlClc::GetTextColor(int iFontId)
-{ return (COLORREF)SendMessage(m_hwnd, CLM_GETTEXTCOLOR, (WPARAM)iFontId, 0);
-}
-
-void CCtrlClc::SetTextColor(int iFontId, COLORREF clText)
-{ SendMessage(m_hwnd, CLM_SETTEXTCOLOR, (WPARAM)iFontId, (LPARAM)clText);
-}
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index cc0713af90..762ddcc9be 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -646,7 +646,6 @@ mir_wstrcmpi @280
?GetItemText@CCtrlListView@@QAEXHHPA_WH@Z @833 NONAME
?GetItemType@CCtrlClc@@QAEHPAX@Z @834 NONAME
?GetLastVisible@CCtrlTreeView@@QAEPAU_TREEITEM@@XZ @835 NONAME
-?GetLefrMargin@CCtrlClc@@QAEHXZ @836 NONAME
?GetLineColor@CCtrlTreeView@@QAEKXZ @837 NONAME
?GetNextItem@CCtrlClc@@QAEPAXPAXK@Z @838 NONAME
?GetNextItem@CCtrlListView@@QAEHHI@Z @839 NONAME
@@ -681,7 +680,6 @@ mir_wstrcmpi @280
?GetTextBkColor@CCtrlListView@@QAEKXZ @869 NONAME
?GetTextColor@CCtrlListView@@QAEKXZ @870 NONAME
?GetTextColor@CCtrlTreeView@@QAEKXZ @871 NONAME
-?GetTextColor@CCtrlClc@@QAEKH@Z @872 NONAME
?GetTileInfo@CCtrlListView@@QAEXPAUtagLVTILEINFO@@@Z @873 NONAME
?GetTileViewInfo@CCtrlListView@@QAEXPAUtagLVTILEVIEWINFO@@@Z @874 NONAME
?GetToolTips@CCtrlListView@@QAEPAUHWND__@@XZ @875 NONAME
@@ -776,7 +774,6 @@ mir_wstrcmpi @280
?SelectString@CCtrlCombo@@QAEHPB_W@Z @969 NONAME
?SelectString@CCtrlListBox@@QAEHPB_W@Z @970 NONAME
?SendMsg@CCtrlBase@@QBEJIIJ@Z @971 NONAME
-?SetBkBitmap@CCtrlClc@@QAEXKPAUHBITMAP__@@@Z @972 NONAME
?SetBkColor@CCtrlClc@@QAEXK@Z @973 NONAME
?SetBkColor@CCtrlListView@@QAEHK@Z @974 NONAME
?SetBkColor@CCtrlTreeView@@QAEKK@Z @975 NONAME
@@ -797,7 +794,6 @@ mir_wstrcmpi @280
?SetExtraImage@CCtrlClc@@QAEXPAXHH@Z @990 NONAME
?SetExtraImageList@CCtrlClc@@QAEXPAU_IMAGELIST@@@Z @991 NONAME
?SetFont@CCtrlClc@@QAEXHPAX_N@Z @992 NONAME
-?SetGreyoutFlags@CCtrlClc@@QAEXK@Z @993 NONAME
?SetGroupInfo@CCtrlListView@@QAEHHPAUtagLVGROUP@@@Z @994 NONAME
?SetGroupMetrics@CCtrlListView@@QAEXPAUtagLVGROUPMETRICS@@@Z @995 NONAME
?SetHideEmptyGroups@CCtrlClc@@QAEX_N@Z @996 NONAME
@@ -808,7 +804,6 @@ mir_wstrcmpi @280
?SetIconSpacing@CCtrlListView@@QAEKHH@Z @1001 NONAME
?SetImageList@CCtrlListView@@QAEPAU_IMAGELIST@@PAU2@H@Z @1002 NONAME
?SetImageList@CCtrlTreeView@@QAEXPAU_IMAGELIST@@H@Z @1003 NONAME
-?SetIndent@CCtrlClc@@QAEXH@Z @1004 NONAME
?SetIndent@CCtrlTreeView@@QAEXH@Z @1005 NONAME
?SetInfoTip@CCtrlListView@@QAEHPAUtagLVSETINFOTIP@@@Z @1006 NONAME
?SetInsertMark@CCtrlListView@@QAEHPAULVINSERTMARK@@@Z @1007 NONAME
@@ -830,7 +825,6 @@ mir_wstrcmpi @280
?SetItemState@CCtrlTreeView@@QAEXPAU_TREEITEM@@KK@Z @1023 NONAME
?SetItemText@CCtrlClc@@QAEXPAXPAD@Z @1024 NONAME
?SetItemText@CCtrlListView@@QAEXHHPB_W@Z @1025 NONAME
-?SetLeftMargin@CCtrlClc@@QAEXH@Z @1026 NONAME
?SetLineColor@CCtrlTreeView@@QAEKK@Z @1027 NONAME
?SetOfflineModes@CCtrlClc@@QAEXK@Z @1028 NONAME
?SetOutlineColor@CCtrlListView@@QAEKK@Z @1029 NONAME
@@ -842,7 +836,6 @@ mir_wstrcmpi @280
?SetText@CCtrlBase@@QAEXPB_W@Z @1036 NONAME
?SetTextA@CCtrlBase@@QAEXPBD@Z @1037 NONAME
?SetTextBkColor@CCtrlListView@@QAEHK@Z @1038 NONAME
-?SetTextColor@CCtrlClc@@QAEXHK@Z @1039 NONAME
?SetTextColor@CCtrlListView@@QAEHK@Z @1040 NONAME
?SetTextColor@CCtrlTreeView@@QAEKK@Z @1041 NONAME
?SetTileInfo@CCtrlListView@@QAEHPAUtagLVTILEINFO@@@Z @1042 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index 640a6628f3..d7090d5360 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -646,7 +646,6 @@ mir_wstrcmpi @280
?GetItemText@CCtrlListView@@QEAAXHHPEA_WH@Z @833 NONAME
?GetItemType@CCtrlClc@@QEAAHPEAX@Z @834 NONAME
?GetLastVisible@CCtrlTreeView@@QEAAPEAU_TREEITEM@@XZ @835 NONAME
-?GetLefrMargin@CCtrlClc@@QEAAHXZ @836 NONAME
?GetLineColor@CCtrlTreeView@@QEAAKXZ @837 NONAME
?GetNextItem@CCtrlClc@@QEAAPEAXPEAXK@Z @838 NONAME
?GetNextItem@CCtrlListView@@QEAAHHI@Z @839 NONAME
@@ -681,7 +680,6 @@ mir_wstrcmpi @280
?GetTextBkColor@CCtrlListView@@QEAAKXZ @869 NONAME
?GetTextColor@CCtrlListView@@QEAAKXZ @870 NONAME
?GetTextColor@CCtrlTreeView@@QEAAKXZ @871 NONAME
-?GetTextColor@CCtrlClc@@QEAAKH@Z @872 NONAME
?GetTileInfo@CCtrlListView@@QEAAXPEAUtagLVTILEINFO@@@Z @873 NONAME
?GetTileViewInfo@CCtrlListView@@QEAAXPEAUtagLVTILEVIEWINFO@@@Z @874 NONAME
?GetToolTips@CCtrlListView@@QEAAPEAUHWND__@@XZ @875 NONAME
@@ -776,7 +774,6 @@ mir_wstrcmpi @280
?SelectString@CCtrlCombo@@QEAAHPEB_W@Z @969 NONAME
?SelectString@CCtrlListBox@@QEAAHPEB_W@Z @970 NONAME
?SendMsg@CCtrlBase@@QEBA_JI_K_J@Z @971 NONAME
-?SetBkBitmap@CCtrlClc@@QEAAXKPEAUHBITMAP__@@@Z @972 NONAME
?SetBkColor@CCtrlClc@@QEAAXK@Z @973 NONAME
?SetBkColor@CCtrlListView@@QEAAHK@Z @974 NONAME
?SetBkColor@CCtrlTreeView@@QEAAKK@Z @975 NONAME
@@ -797,7 +794,6 @@ mir_wstrcmpi @280
?SetExtraImage@CCtrlClc@@QEAAXPEAXHH@Z @990 NONAME
?SetExtraImageList@CCtrlClc@@QEAAXPEAU_IMAGELIST@@@Z @991 NONAME
?SetFont@CCtrlClc@@QEAAXHPEAX_N@Z @992 NONAME
-?SetGreyoutFlags@CCtrlClc@@QEAAXK@Z @993 NONAME
?SetGroupInfo@CCtrlListView@@QEAAHHPEAUtagLVGROUP@@@Z @994 NONAME
?SetGroupMetrics@CCtrlListView@@QEAAXPEAUtagLVGROUPMETRICS@@@Z @995 NONAME
?SetHideEmptyGroups@CCtrlClc@@QEAAX_N@Z @996 NONAME
@@ -808,7 +804,6 @@ mir_wstrcmpi @280
?SetIconSpacing@CCtrlListView@@QEAAKHH@Z @1001 NONAME
?SetImageList@CCtrlListView@@QEAAPEAU_IMAGELIST@@PEAU2@H@Z @1002 NONAME
?SetImageList@CCtrlTreeView@@QEAAXPEAU_IMAGELIST@@H@Z @1003 NONAME
-?SetIndent@CCtrlClc@@QEAAXH@Z @1004 NONAME
?SetIndent@CCtrlTreeView@@QEAAXH@Z @1005 NONAME
?SetInfoTip@CCtrlListView@@QEAAHPEAUtagLVSETINFOTIP@@@Z @1006 NONAME
?SetInsertMark@CCtrlListView@@QEAAHPEAULVINSERTMARK@@@Z @1007 NONAME
@@ -830,7 +825,6 @@ mir_wstrcmpi @280
?SetItemState@CCtrlTreeView@@QEAAXPEAU_TREEITEM@@KK@Z @1023 NONAME
?SetItemText@CCtrlClc@@QEAAXPEAXPEAD@Z @1024 NONAME
?SetItemText@CCtrlListView@@QEAAXHHPEB_W@Z @1025 NONAME
-?SetLeftMargin@CCtrlClc@@QEAAXH@Z @1026 NONAME
?SetLineColor@CCtrlTreeView@@QEAAKK@Z @1027 NONAME
?SetOfflineModes@CCtrlClc@@QEAAXK@Z @1028 NONAME
?SetOutlineColor@CCtrlListView@@QEAAKK@Z @1029 NONAME
@@ -842,7 +836,6 @@ mir_wstrcmpi @280
?SetText@CCtrlBase@@QEAAXPEB_W@Z @1036 NONAME
?SetTextA@CCtrlBase@@QEAAXPEBD@Z @1037 NONAME
?SetTextBkColor@CCtrlListView@@QEAAHK@Z @1038 NONAME
-?SetTextColor@CCtrlClc@@QEAAXHK@Z @1039 NONAME
?SetTextColor@CCtrlListView@@QEAAHK@Z @1040 NONAME
?SetTextColor@CCtrlTreeView@@QEAAKK@Z @1041 NONAME
?SetTileInfo@CCtrlListView@@QEAAHPEAUtagLVTILEINFO@@@Z @1042 NONAME