Add new items to top.
(This summarizes all changes to all files under Src, including Src\Languages.)
+2006-07-04 Kimmo
+ PATCH: [ 1516626 ] Enable double-click in column customization dialog
+ Src: DirColsDlg.cpp DirColsDlg.h
+
2006-07-04 Takashi
BUG: [ 1303166 ] crash or freeze on closing all window
Src: MainFrm.cpp
#include "stdafx.h"
#include "merge.h"
#include "DirColsDlg.h"
+#include ".\dircolsdlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
//}}AFX_MSG_MAP
ON_LBN_SELCHANGE(IDC_LIST_SHOW, OnLbnSelchangeListShow)
ON_LBN_SELCHANGE(IDC_LIST_HIDE, OnLbnSelchangeListHide)
+ ON_LBN_DBLCLK(IDC_LIST_SHOW, OnLbnDblclkListShow)
+ ON_LBN_DBLCLK(IDC_LIST_HIDE, OnLbnDblclkListHide)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
}
}
+/**
+ * @brief Handle keyboard events.
+ */
BOOL CDirColsDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_KEYDOWN && pMsg->wParam != VK_CONTROL)
return CDialog::PreTranslateMessage(pMsg);
}
+
+/**
+ * @brief Called when mouse is double-clicked over shown columns list.
+ */
+void CDirColsDlg::OnLbnDblclkListShow()
+{
+ OnRemove();
+}
+
+/**
+ * @brief Called when mouse is double-clicked over hidden columns list.
+ */
+void CDirColsDlg::OnLbnDblclkListHide()
+{
+ OnAdd();
+}
{
// Public types
public:
- struct column {
- CString name;
- CString desc;
- int log_col;
- int phy_col;
+ /** @brief One column's information. */
+ struct column
+ {
+ CString name; /**< Column name */
+ CString desc; /**< Description for column */
+ int log_col; /**< Logical (shown) order number */
+ int phy_col; /**< Physical (in memory) order number */
column() : log_col(-1), phy_col(-1) { } /**< default constructor for use in CArray */
column(LPCTSTR sz, LPCTSTR dsc, int log, int phy) : name(sz), desc(dsc), log_col(log), phy_col(phy) { }
};
afx_msg void OnLbnSelchangeListHide();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
+public:
+ afx_msg void OnLbnDblclkListShow();
+ afx_msg void OnLbnDblclkListHide();
};
//{{AFX_INSERT_LOCATION}}