Source code of Windows XP (NT5)
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.

68 lines
1.3 KiB

  1. // Copyright (c) 2000 Microsoft Corporation
  2. //
  3. // Caps lock warning Balloon tip window
  4. //
  5. // 7 Nov 2000 sburns (that would be election day)
  6. //
  7. // added to fix NTRAID#NTBUG9-202238-2000/11/06-sburns
  8. #ifndef CAPSLOCKBALLOONTIP_HPP_INCLUDED
  9. #define CAPSLOCKBALLOONTIP_HPP_INCLUDED
  10. // Class used to show a balloon-style tool tip window that complains to the
  11. // user that caps lock is on. Used by PasswordEditBox.
  12. class CapsLockBalloonTip
  13. {
  14. public:
  15. CapsLockBalloonTip();
  16. // destroys the tool tip window, if it still exists
  17. ~CapsLockBalloonTip();
  18. // Initialize the tool tip, but don't show it.
  19. //
  20. // parentWindow - in, the parent window handle of the control to have the
  21. // tool tip. (The password edit control window).
  22. HRESULT
  23. Init(HWND parentWindow);
  24. // Show or hide the tip window.
  25. //
  26. // notHidden - in, if true, show the window. If false, hide it.
  27. void
  28. Show(bool notHidden);
  29. private:
  30. // not implemented: no copying allowed
  31. CapsLockBalloonTip(const CapsLockBalloonTip&);
  32. const CapsLockBalloonTip& operator=(const CapsLockBalloonTip&);
  33. String title;
  34. String text;
  35. bool visible;
  36. HWND tipWindow;
  37. HWND parentWindow;
  38. };
  39. #endif // CAPSLOCKBALLOONTIP_HPP_INCLUDED