From 4dd41bfe65b206acb2df026d21320ef2659946b0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 25 Nov 2012 20:31:38 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@2499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_dialogs.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'protocols/Skype/src/skype_dialogs.cpp') diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index 3677d44ede..256628679a 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -345,7 +345,25 @@ INT_PTR CALLBACK CSkypeProto::OwnSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa lvi.lParam = lvi.iItem; lvi.pszText = (LPTSTR)setting[lvi.iItem].szDescription; ListView_InsertItem(hwndList, &lvi); - ListView_SetItemText(hwndList, lvi.iItem, 1, _T("111")); + wchar_t *text; + switch(setting[lvi.iItem].dbType) { + DBVARIANT dbv; + case DBVT_WCHAR: + //text = this->GetSettingString(setting[lvi.iItem].szDbSetting); + /*if ( !DBGetContactSettingWString(NULL, "Skype_1", setting[lvi.iItem].szDbSetting, &dbv)) { + text = mir_tstrdup(dbv.pwszVal); + db_free(&dbv); + }*/ + + break; + case DBVT_BYTE: + //text = (wchar_t*)ppro->GetSettingByte(setting[lvi.iItem].szDbSetting); + break; + case DBVT_WORD: + //text = (wchar_t*)ppro->GetSettingWord(setting[lvi.iItem].szDbSetting); + break; + } + ListView_SetItemText(hwndList, lvi.iItem, 1, text); } SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); -- cgit v1.2.3