view src/win32/KeyboardEdit.h @ 3:b05d00f19d80

fix some formatting
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:33:11 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 ////////////////////////////////////////////////////////////////////////////////
2 // Copyright (C) 1998 by Thierry Maurel
3 // All rights reserved
4 //
5 // Distribute freely, except: don't remove my name from the source or
6 // documentation (don't take credit for my work), mark your changes (don't
7 // get me blamed for your possible bugs), don't alter or remove this
8 // notice.
9 // No warrantee of any kind, express or implied, is included with this
10 // software; use at your own risk, responsibility for damages (if any) to
11 // anyone resulting from the use of this software rests entirely with the
12 // user.
13 //
14 // Send bug reports, bug fixes, enhancements, requests, flames, etc., and
15 // I'll try to keep a version up to date. I can be reached as follows:
16 // tmaurel@caramail.com (or tmaurel@hol.fr)
17 //
18 ////////////////////////////////////////////////////////////////////////////////
19 // File : KeyboardEdit.h
20 // Project : AccelsEditor
21 ////////////////////////////////////////////////////////////////////////////////
22 // Version : 1.0 * Authors : A.Lebatard + T.Maurel
23 // Date : 17.08.98
24 //
25 // Remarks :
26 //
27 ////////////////////////////////////////////////////////////////////////////////
28 // Modified by the VBA-rr Team
30 #if !defined(AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_)
31 #define AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_
33 #if _MSC_VER >= 1000
34 #pragma once
35 #endif // _MSC_VER >= 1000
36 // KeyboardEdit.h : header file
37 //
39 /////////////////////////////////////////////////////////////////////////////
40 // CKeyboardEdit window
42 class CKeyboardEdit : public CEdit
43 {
44 DECLARE_DYNAMIC(CKeyboardEdit) // what will this do?
46 // Construction
47 public:
48 CKeyboardEdit();
50 // Operations
51 public:
52 void ResetKey();
53 void AllKeyUp();
54 bool GetAccelKey(WORD &wVirtKey, bool &bCtrl, bool &bAlt, bool &bShift) const;
55 bool GetJamKey(WORD &wJamKey) const;
56 bool IsDefined() const;
57 bool IsFinished() const;
59 // Overrides
60 // ClassWizard generated virtual function overrides
61 //{{AFX_VIRTUAL(CKeyboardEdit)
62 public:
63 virtual BOOL PreTranslateMessage(MSG *pMsg);
64 virtual ~CKeyboardEdit();
65 //}}AFX_VIRTUAL
67 protected:
68 void DisplayKeyboardString();
70 // Attributes
71 protected:
72 BYTE m_keys[256];
73 bool m_bForceUpdate;
74 bool m_bCtrlPressed;
75 bool m_bAltPressed;
76 bool m_bShiftPressed;
77 WORD m_wVirtKey;
78 WORD m_wJamKey;
80 // Generated message map functions
81 public:
82 //{{AFX_MSG(CKeyboardEdit)
83 afx_msg BOOL OnEnChange();
84 afx_msg BOOL OnEnSetfocus();
85 afx_msg BOOL OnEnKillfocus();
86 //}}AFX_MSG
88 DECLARE_MESSAGE_MAP()
89 };
91 /////////////////////////////////////////////////////////////////////////////
93 //{{AFX_INSERT_LOCATION}}
94 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
96 #endif // !defined(AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_)