home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / KeyboardEdit.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-11-04  |  2.6 KB  |  88 lines

  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. #if !defined(AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_)
  29. #define AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_
  30.  
  31. #if _MSC_VER >= 1000
  32. #pragma once
  33. #endif // _MSC_VER >= 1000
  34. // KeyboardEdit.h : header file
  35. //
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CKeyboardEdit window
  39.  
  40. class CKeyboardEdit : public CEdit
  41. {
  42.   // Construction
  43.  public:
  44.   CKeyboardEdit();
  45.  
  46.   // Attributes
  47.  public:
  48.   bool m_bKeyDefined;
  49.  
  50.   WORD m_wVirtKey;
  51.   bool m_bCtrlPressed;
  52.   bool m_bAltPressed;
  53.   bool m_bShiftPressed;
  54.  
  55.   // Operations
  56.  public:
  57.   bool GetAccelKey(WORD& wVirtKey, bool& bCtrl, bool& bAlt, bool& bShift);
  58.   void ResetKey ();
  59.  
  60.  protected:
  61.   void DisplayKeyboardString ();
  62.  
  63.   // Overrides
  64.   // ClassWizard generated virtual function overrides
  65.   //{{AFX_VIRTUAL(CKeyboardEdit)
  66.  public:
  67.   virtual BOOL PreTranslateMessage(MSG* pMsg);
  68.   //}}AFX_VIRTUAL
  69.  
  70.   // Implementation
  71.  public:
  72.   virtual ~CKeyboardEdit();
  73.  
  74.   // Generated message map functions
  75.  protected:
  76.   //{{AFX_MSG(CKeyboardEdit)
  77.   //}}AFX_MSG
  78.  
  79.   DECLARE_MESSAGE_MAP()
  80.     };
  81.  
  82.     /////////////////////////////////////////////////////////////////////////////
  83.  
  84. //{{AFX_INSERT_LOCATION}}
  85. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  86.  
  87. #endif // !defined(AFX_KEYBOARDEDIT_H__88E35AB0_2E23_11D2_BA24_0060B0B5E151__INCLUDED_)
  88.