Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltaccel.hxx
  7. Accelerator support for BLT: definition
  8. This file declares the interface to the ACCELTABLE class.
  9. FILE HISTORY:
  10. beng 09-Jul-1991 Created
  11. */
  12. #ifndef _BLT_HXX_
  13. #error "Don't include this file directly; instead, include it through blt.hxx"
  14. #endif // _BLT_HXX_
  15. #ifndef _BLTACCEL_HXX_
  16. #define _BLTACCEL_HXX_
  17. #include "base.hxx"
  18. #include "bltwin.hxx"
  19. #include "bltidres.hxx"
  20. /*************************************************************************
  21. NAME: ACCELTABLE
  22. SYNOPSIS: Accelerator table wrapper class
  23. INTERFACE: ACCELTABLE() - constructor. Loads the resource.
  24. ~ACCELTABLE() - destructor
  25. QueryHandle() - returns a Win HANDLE for API calls
  26. Translate() - given a window and a message,
  27. attempts to translate that message's
  28. accelerators
  29. PARENT: BASE
  30. USES: IDRESOURCE
  31. CAVEATS:
  32. NOTES:
  33. Implementation in blt\bltmisc.cxx
  34. HISTORY:
  35. beng 09-Jul-1991 Created
  36. rustanl 29-Aug-1991 Ct now takes const TCHAR *
  37. beng 03-Aug-1992 Uses IDRESOURCE
  38. **************************************************************************/
  39. DLL_CLASS ACCELTABLE: public BASE
  40. {
  41. private:
  42. HACCEL _hAccTable;
  43. public:
  44. ACCELTABLE( const IDRESOURCE & idrsrc );
  45. ~ACCELTABLE();
  46. HACCEL QueryHandle() const;
  47. BOOL Translate( const WINDOW* pwnd, MSG* pmsg ) const;
  48. };
  49. #endif // _BLTACCEL_HXX_ - end of file