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.

55 lines
1.6 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: Mnemonic.H
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. // Declaration of ILocMnemonics.
  9. // This interface allows to retrieve the mnemonics (aka hotkeys) of a
  10. // resource
  11. //
  12. // Owner: EduardoF
  13. //
  14. //-----------------------------------------------------------------------------
  15. #ifndef MNEMONIC_H
  16. #define MNEMONIC_H
  17. extern const IID IID_ILocMnemonics;
  18. DECLARE_INTERFACE_(ILocMnemonics, IUnknown)
  19. {
  20. //
  21. // IUnknown standard interface.
  22. //
  23. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR*ppvObj) PURE;
  24. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  25. STDMETHOD_(ULONG, Release)(THIS) PURE;
  26. //
  27. // Standard Debugging interface.
  28. //
  29. STDMETHOD_(void, AssertValidInterface)(THIS) CONST_METHOD PURE;
  30. //Gets the mnemonics (aka hotkeys) in the resource array of locitems.
  31. //Inputs:
  32. // - A pointer to a CLocItemPtrArray object containing the CLocItem objects of
  33. // a resource (like a dialog or a menu).
  34. // - An array index to the root item of the resource.
  35. // - An array index to the selected item of the resource.
  36. // - The resource's language id.
  37. // - A pointer to a reporter object where all error messages are sent.
  38. //Outputs:
  39. // - A 'CHotkeysMap' map containing the mnemonics.
  40. //Return:
  41. // TRUE if the mnemonics could be retrieved successfully. FALSE, otherwise.
  42. STDMETHOD_(BOOL, GetMnemonics)
  43. (THIS_ CLocItemPtrArray &, int, int, LangId, CReporter * pReporter,
  44. CMnemonicsMap &) PURE;
  45. };
  46. #endif // MNEMONIC_H