/*
* Copyright (c) 2003-2019 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/

#pragma once

class CExpPWListDlg;

class CExpPswdLC : public CListCtrl
{
public:
  CExpPswdLC();
  ~CExpPswdLC();

protected:
  WCHAR *m_pwchTip;

  virtual BOOL PreTranslateMessage(MSG *pMsg);
  virtual void PreSubclassWindow();

  //{{AFX_MSG(CEBListCtrl)
  afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  afx_msg BOOL OnToolTipText(UINT id, NMHDR *pNotifyStruct, LRESULT *pLResult);
  afx_msg void OnCustomDraw(NMHDR *pNotifyStruct, LRESULT *pLResult);
  //}}AFX_MSG

  DECLARE_MESSAGE_MAP()

private:
  CToolTipCtrl *m_pToolTipCtrl;
  int m_LastToolTipRow;

  COLORREF m_clrDisabled;
  CFont *m_pAddEditFont, *m_pItalicAddEditFont;

  CExpPWListDlg *m_pParent;
};
