diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-24 21:11:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-24 21:11:51 +0000 |
commit | 6828926a4d4eefef4632e97646f639c8ec24d0ab (patch) | |
tree | 01747ba326526e69b4d64df3416acfe0ca6d9446 /plugins/HistoryStats/src/dlgoption_subcolumns.cpp | |
parent | d41cb4808c648d458be7615d6a72003e3614538d (diff) |
HistoryStats project conversion
git-svn-id: http://svn.miranda-ng.org/main/trunk@13110 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/dlgoption_subcolumns.cpp')
-rw-r--r-- | plugins/HistoryStats/src/dlgoption_subcolumns.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/plugins/HistoryStats/src/dlgoption_subcolumns.cpp b/plugins/HistoryStats/src/dlgoption_subcolumns.cpp index aef8ca4771..e7a7368eda 100644 --- a/plugins/HistoryStats/src/dlgoption_subcolumns.cpp +++ b/plugins/HistoryStats/src/dlgoption_subcolumns.cpp @@ -1,4 +1,4 @@ -#include "_globals.h"
+#include "stdafx.h"
#include "dlgoption.h"
#include "column.h"
@@ -9,7 +9,7 @@ * DlgOption::SubColumns
*/
-INT_PTR CALLBACK DlgOption::SubColumns::staticAddProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK DlgOption::SubColumns::staticAddProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM)
{
HWND hWndList = GetDlgItem(hDlg, IDC_COLUMN);
@@ -39,12 +39,7 @@ INT_PTR CALLBACK DlgOption::SubColumns::staticAddProc(HWND hDlg, UINT msg, WPARA case IDOK:
{
int nIndex = SendMessage(hWndList, LB_GETCURSEL, 0, 0);
- if (nIndex != LB_ERR) {
- int nData = SendMessage(hWndList, LB_GETITEMDATA, nIndex, 0);
-
- EndDialog(hDlg, nIndex);
- }
- else EndDialog(hDlg, -1);
+ EndDialog(hDlg, nIndex);
}
return TRUE;
@@ -104,7 +99,7 @@ BOOL DlgOption::SubColumns::handleMsg(UINT msg, WPARAM wParam, LPARAM lParam) BandCtrl::NMBANDCTRL* pNM = reinterpret_cast<BandCtrl::NMBANDCTRL*>(lParam);
if (pNM->hdr.code == BandCtrl::BCN_CLICKED)
onBandClicked(pNM->hButton, pNM->dwData);
- else if (pNM->hdr.code == BandCtrl::BCN_DROPDOWN)
+ else if (pNM->hdr.code == BandCtrl::BCN_DROP_DOWN)
onBandDropDown(pNM->hButton, pNM->dwData);
}
break;
@@ -340,7 +335,7 @@ void DlgOption::SubColumns::addCol(int nCol) }
}
-void DlgOption::SubColumns::onColSelChanging(HANDLE hItem, INT_PTR dwData)
+void DlgOption::SubColumns::onColSelChanging(HANDLE hItem, INT_PTR)
{
if (hItem) {
Column* pCol = reinterpret_cast<Column*>(m_Columns.getItemData(hItem));
@@ -374,7 +369,7 @@ void DlgOption::SubColumns::onColSelChanging(HANDLE hItem, INT_PTR dwData) TreeView_DeleteAllItems(hInfo);
}
-void DlgOption::SubColumns::onColSelChanged(HANDLE hItem, INT_PTR dwData)
+void DlgOption::SubColumns::onColSelChanged(HANDLE hItem, INT_PTR)
{
m_Options.setRedraw(false);
m_Options.deleteAllItems();
@@ -511,7 +506,7 @@ void DlgOption::SubColumns::onColItemDropped(HANDLE hItem, HANDLE hDropTarget, B getParent()->settingsChanged();
}
-void DlgOption::SubColumns::onBandClicked(HANDLE hButton, INT_PTR dwData)
+void DlgOption::SubColumns::onBandClicked(HANDLE, INT_PTR dwData)
{
switch (dwData) {
case caAdd:
@@ -635,7 +630,7 @@ void DlgOption::SubColumns::onMoveDown() getParent()->settingsChanged();
}
-void DlgOption::SubColumns::onColumnButton(HANDLE hButton, INT_PTR dwData)
+void DlgOption::SubColumns::onColumnButton(HANDLE, INT_PTR dwData)
{
if (dwData == Settings::biFilterWords) {
HANDLE hSel = m_Columns.getSelection();
|