diff src/win32/KeyboardEdit.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/KeyboardEdit.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,96 @@
     1.4 +////////////////////////////////////////////////////////////////////////////////
     1.5 +// Copyright (C) 1998 by Thierry Maurel
     1.6 +// All rights reserved
     1.7 +//
     1.8 +// Distribute freely, except: don't remove my name from the source or
     1.9 +// documentation (don't take credit for my work), mark your changes (don't
    1.10 +// get me blamed for your possible bugs), don't alter or remove this
    1.11 +// notice.
    1.12 +// No warrantee of any kind, express or implied, is included with this
    1.13 +// software; use at your own risk, responsibility for damages (if any) to
    1.14 +// anyone resulting from the use of this software rests entirely with the
    1.15 +// user.
    1.16 +//
    1.17 +// Send bug reports, bug fixes, enhancements, requests, flames, etc., and
    1.18 +// I'll try to keep a version up to date.  I can be reached as follows:
    1.19 +//    tmaurel@caramail.com   (or tmaurel@hol.fr)
    1.20 +//
    1.21 +////////////////////////////////////////////////////////////////////////////////
    1.22 +// File    : KeyboardEdit.h
    1.23 +// Project : AccelsEditor
    1.24 +////////////////////////////////////////////////////////////////////////////////
    1.25 +// Version : 1.0                       * Authors : A.Lebatard + T.Maurel
    1.26 +// Date    : 17.08.98
    1.27 +//
    1.28 +// Remarks :
    1.29 +//
    1.30 +////////////////////////////////////////////////////////////////////////////////
    1.31 +// Modified by the VBA-rr Team
    1.32 +
    1.33 +#if !defined(AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_)
    1.34 +#define AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_
    1.35 +
    1.36 +#if _MSC_VER >= 1000
    1.37 +#pragma once
    1.38 +#endif // _MSC_VER >= 1000
    1.39 +// KeyboardEdit.h : header file
    1.40 +//
    1.41 +
    1.42 +/////////////////////////////////////////////////////////////////////////////
    1.43 +// CKeyboardEdit window
    1.44 +
    1.45 +class CKeyboardEdit : public CEdit
    1.46 +{
    1.47 +	DECLARE_DYNAMIC(CKeyboardEdit)	// what will this do?
    1.48 +
    1.49 +	// Construction
    1.50 +public:
    1.51 +	CKeyboardEdit();
    1.52 +
    1.53 +	// Operations
    1.54 +public:
    1.55 +	void ResetKey();
    1.56 +	void AllKeyUp();
    1.57 +	bool GetAccelKey(WORD &wVirtKey, bool &bCtrl, bool &bAlt, bool &bShift) const;
    1.58 +	bool GetJamKey(WORD &wJamKey) const;
    1.59 +	bool IsDefined() const;
    1.60 +	bool IsFinished() const;
    1.61 +
    1.62 +	// Overrides
    1.63 +	// ClassWizard generated virtual function overrides
    1.64 +	//{{AFX_VIRTUAL(CKeyboardEdit)
    1.65 +public:
    1.66 +	virtual BOOL PreTranslateMessage(MSG *pMsg);
    1.67 +	virtual ~CKeyboardEdit();
    1.68 +	//}}AFX_VIRTUAL
    1.69 +
    1.70 +protected:
    1.71 +	void DisplayKeyboardString();
    1.72 +
    1.73 +	// Attributes
    1.74 +protected:
    1.75 +	BYTE m_keys[256];
    1.76 +	bool m_bForceUpdate;
    1.77 +	bool m_bCtrlPressed;
    1.78 +	bool m_bAltPressed;
    1.79 +	bool m_bShiftPressed;
    1.80 +	WORD m_wVirtKey;
    1.81 +	WORD m_wJamKey;
    1.82 +
    1.83 +	// Generated message map functions
    1.84 +public:
    1.85 +	//{{AFX_MSG(CKeyboardEdit)
    1.86 +	afx_msg BOOL OnEnChange();
    1.87 +	afx_msg BOOL OnEnSetfocus();
    1.88 +	afx_msg BOOL OnEnKillfocus();
    1.89 +	//}}AFX_MSG
    1.90 +
    1.91 +	DECLARE_MESSAGE_MAP()
    1.92 +};
    1.93 +
    1.94 +/////////////////////////////////////////////////////////////////////////////
    1.95 +
    1.96 +//{{AFX_INSERT_LOCATION}}
    1.97 +// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
    1.98 +
    1.99 +#endif // !defined(AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_)