diff options
author | George Hazan <ghazan@miranda.im> | 2016-11-22 21:09:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-11-22 21:09:01 +0300 |
commit | 601562c2a08523440e58b09511cba4878880ec4d (patch) | |
tree | 6d3f684bc7e8e843067a873f2a0d11c1afdd5901 /src | |
parent | 898f54c452241eeb6ee587fc23adff0f21b66e02 (diff) |
missing UI method: CCtrlListBox::GetItemRect
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 8 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 5415d0021a..a1d5f04406 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1033,3 +1033,4 @@ CallFunctionSync @1170 ?AddTimer@CDlgBase@@IAEXPAVCTimer@@@Z @1190 NONAME
??0CCtrlBase@@AAE@PAUHWND__@@@Z @1191 NONAME
?FindControl@CDlgBase@@AAEPAVCCtrlBase@@PAUHWND__@@@Z @1192 NONAME
+?GetItemRect@CCtrlListBox@@QAEHHPAUtagRECT@@@Z @1193 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 1d24a768ff..76bc7b1e8f 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1033,3 +1033,4 @@ CallFunctionSync @1170 ?AddTimer@CDlgBase@@IEAAXPEAVCTimer@@@Z @1190 NONAME
??0CCtrlBase@@AEAA@PEAUHWND__@@@Z @1191 NONAME
?FindControl@CDlgBase@@AEAAPEAVCCtrlBase@@PEAUHWND__@@@Z @1192 NONAME
+?GetItemRect@CCtrlListBox@@QEAAHHPEAUtagRECT@@@Z @1193 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index ef726b6c49..9335a08610 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -470,8 +470,8 @@ void CCtrlCombo::ShowDropdown(bool show) /////////////////////////////////////////////////////////////////////////////////////////
// CCtrlListBox class
-CCtrlListBox::CCtrlListBox(CDlgBase* dlg, int ctrlId) :
-CCtrlBase(dlg, ctrlId)
+CCtrlListBox::CCtrlListBox(CDlgBase* dlg, int ctrlId)
+ : CCtrlBase(dlg, ctrlId)
{}
BOOL CCtrlListBox::OnCommand(HWND, WORD, WORD idCode)
@@ -511,6 +511,10 @@ LPARAM CCtrlListBox::GetItemData(int index) { return SendMessage(m_hwnd, LB_GETITEMDATA, index, 0);
}
+int CCtrlListBox::GetItemRect(int index, RECT *pResult)
+{ return ListBox_GetItemRect(m_hwnd, index, pResult);
+}
+
wchar_t* CCtrlListBox::GetItemText(int index)
{
wchar_t *result = (wchar_t *)mir_alloc(sizeof(wchar_t) * (SendMessage(m_hwnd, LB_GETTEXTLEN, index, 0) + 1));
|