diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-25 20:31:38 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-25 20:31:38 +0000 |
commit | 4dd41bfe65b206acb2df026d21320ef2659946b0 (patch) | |
tree | d1b5aec0e2716806a91335ffa8f0cfc230cb665f /protocols/Skype | |
parent | 898dc8abf83ff483e09a4b415e1973a4afcf673f (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@2499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
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);
|