source: trunk/HotKeyDlg.h @ 29

Revision 29, 1.8 KB checked in by lowjoel, 7 years ago (diff)

-Silenced more unused variable warnings
-Standardize the header at the top of every source file

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// HotKeyDlg.h
2// $Id$
3//
4// Eraser. Secure data removal. For Windows.
5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com).
6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie).
7// Copyright © 2007 The Eraser Project
8//
9// This program is free software; you can redistribute it and/or
10// modify it under the terms of the GNU General Public License
11// as published by the Free Software Foundation; either version 2
12// of the License, or (at your option) any later version.
13//
14// This program is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17// GNU General Public License for more details.
18//
19// You should have received a copy of the GNU General Public License
20// along with this program; if not, write to the Free Software
21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22// 02111-1307, USA.
23#pragma once
24
25#include "HotKeyListCtrl.h"
26#include <CommCtrl.h>
27
28static const int iCommandCount = 2;
29
30
31class CHotKeyDlg : public CDialog
32{
33    DECLARE_DYNAMIC(CHotKeyDlg)
34
35public:
36    CHotKeyDlg(CWnd* pParent = NULL, int iValCnt = iCommandCount);   // standard constructor
37    virtual ~CHotKeyDlg();
38
39// Dialog Data
40    enum { IDD = IDD_DIALOG_HOTKEYS };
41    //CHotKeyListCtrl m_lcHotKeys;
42    CListCtrl m_lcHotKeys;
43    CMapStringToString m_arKeyValues;
44
45protected:
46    virtual BOOL OnInitDialog();
47    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
48    void CHotKeyDlg::UpdateHotKeyList(CListCtrl& lcHKey);
49
50    DECLARE_MESSAGE_MAP()
51public:
52    afx_msg void OnBnClickedChange();
53    afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
54    afx_msg void OnNMClickListHotkeys(NMHDR *pNMHDR, LRESULT *pResult);
55
56    void LoadValuesFromRegistry();
57    void saveListToRegistry();
58    afx_msg void OnBnClickedButtonOk();
59};
Note: See TracBrowser for help on using the repository browser.