Mercurial > vba-clojure
view src/win32/KeyboardEdit.h @ 8:08a8e09ca414
add files required by automake
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:54:39 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 ////////////////////////////////////////////////////////////////////////////////2 // Copyright (C) 1998 by Thierry Maurel3 // All rights reserved4 //5 // Distribute freely, except: don't remove my name from the source or6 // documentation (don't take credit for my work), mark your changes (don't7 // get me blamed for your possible bugs), don't alter or remove this8 // notice.9 // No warrantee of any kind, express or implied, is included with this10 // software; use at your own risk, responsibility for damages (if any) to11 // anyone resulting from the use of this software rests entirely with the12 // user.13 //14 // Send bug reports, bug fixes, enhancements, requests, flames, etc., and15 // 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.h20 // Project : AccelsEditor21 ////////////////////////////////////////////////////////////////////////////////22 // Version : 1.0 * Authors : A.Lebatard + T.Maurel23 // Date : 17.08.9824 //25 // Remarks :26 //27 ////////////////////////////////////////////////////////////////////////////////28 // Modified by the VBA-rr Team30 #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 >= 100034 #pragma once35 #endif // _MSC_VER >= 100036 // KeyboardEdit.h : header file37 //39 /////////////////////////////////////////////////////////////////////////////40 // CKeyboardEdit window42 class CKeyboardEdit : public CEdit43 {44 DECLARE_DYNAMIC(CKeyboardEdit) // what will this do?46 // Construction47 public:48 CKeyboardEdit();50 // Operations51 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 // Overrides60 // ClassWizard generated virtual function overrides61 //{{AFX_VIRTUAL(CKeyboardEdit)62 public:63 virtual BOOL PreTranslateMessage(MSG *pMsg);64 virtual ~CKeyboardEdit();65 //}}AFX_VIRTUAL67 protected:68 void DisplayKeyboardString();70 // Attributes71 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 functions81 public:82 //{{AFX_MSG(CKeyboardEdit)83 afx_msg BOOL OnEnChange();84 afx_msg BOOL OnEnSetfocus();85 afx_msg BOOL OnEnKillfocus();86 //}}AFX_MSG88 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_)