diff options
author | George Hazan <ghazan@miranda.im> | 2018-10-18 21:20:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-10-18 21:20:04 +0300 |
commit | 589b7562b76ade5afb5e50e7eacf74782205c498 (patch) | |
tree | f59387de40a137f2de00bb6a39fac3913c19ee51 /plugins/Import/src/miranda.cpp | |
parent | fba89acdf4814afe7547fd3c24b428ab42aa0a81 (diff) |
the less WinAPI, the better
Diffstat (limited to 'plugins/Import/src/miranda.cpp')
-rw-r--r-- | plugins/Import/src/miranda.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Import/src/miranda.cpp b/plugins/Import/src/miranda.cpp index b8de3a69a8..0abfac62c4 100644 --- a/plugins/Import/src/miranda.cpp +++ b/plugins/Import/src/miranda.cpp @@ -31,11 +31,11 @@ wchar_t importFile[MAX_PATH]; CMirandaPageDlg::CMirandaPageDlg() :
CWizardPageDlg(IDD_MIRANDADB),
- list(this, IDC_LIST),
+ m_list(this, IDC_LIST),
btnBack(this, IDC_BACK),
btnOther(this, IDC_OTHER)
{
- list.OnSelChange = Callback(this, &CMirandaPageDlg::onSelChanged_list);
+ m_list.OnSelChange = Callback(this, &CMirandaPageDlg::onSelChanged_list);
btnBack.OnClick = Callback(this, &CMirandaPageDlg::onClick_Back);
btnOther.OnClick = Callback(this, &CMirandaPageDlg::onClick_Other);
@@ -110,16 +110,16 @@ void CMirandaPageDlg::onClick_Other(CCtrlButton*) }
SetDlgItemText(m_hwnd, IDC_FILENAME, str);
- list.SetCurSel(-1);
+ m_list.SetCurSel(-1);
SendMessage(m_hwndParent, WIZM_ENABLEBUTTON, 1, 0);
}
}
void CMirandaPageDlg::onSelChanged_list(CCtrlListBox*)
{
- int sel = list.GetCurSel();
+ int sel = m_list.GetCurSel();
if (sel != -1) {
- SetDlgItemText(m_hwnd, IDC_FILENAME, (wchar_t*)list.GetItemData(sel));
+ SetDlgItemText(m_hwnd, IDC_FILENAME, (wchar_t*)m_list.GetItemData(sel));
SendMessage(m_hwndParent, WIZM_ENABLEBUTTON, 1, 0);
}
}
@@ -148,7 +148,7 @@ void CMirandaPageDlg::SearchForLists(const wchar_t *mirandaPath, const wchar_t * mir_snwprintf(buf, L"%s\\%s\\%s.dat", mirandaPath, fd.cFileName, fd.cFileName);
if (_waccess(buf, 0) == 0) {
mir_snwprintf(profile, L"%s.dat", fd.cFileName);
- list.AddString(profile, (LPARAM)mir_wstrdup(buf));
+ m_list.AddString(profile, (LPARAM)mir_wstrdup(buf));
}
} while (FindNextFile(hFind, &fd));
|