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.5 KiB

  1. // Copyright (c) 2000 Microsoft Corporation
  2. //
  3. // password edit control wrapper
  4. //
  5. // 6 Nov 2000 sburns
  6. //
  7. // added to fix NTRAID#NTBUG9-202238-2000/11/06-sburns
  8. #ifndef PASSWORDEDITBOX_HPP_INCLUDED
  9. #define PASSWORDEDITBOX_HPP_INCLUDED
  10. #include "CapsLockBalloonTip.hpp"
  11. #include "ControlSubclasser.hpp"
  12. // Class for hooking the window proc of an edit control to add a balloon
  13. // tooltip that is shown when the caps lock key is pressed.
  14. class PasswordEditBox : public ControlSubclasser
  15. {
  16. public:
  17. PasswordEditBox();
  18. virtual
  19. ~PasswordEditBox();
  20. // subclasses the edit control, inits the balloon tip, and sets the text
  21. // limit appropriately.
  22. //
  23. // editControl - in, handle to the edit control to be hooked. This must be
  24. // a handle to an edit control, or we fire an assertion.
  25. HRESULT
  26. Init(HWND editControl);
  27. // Invoked upon receipt of any window message.
  28. //
  29. // message - in, the message code passed to the dialog window.
  30. //
  31. // wparam - in, the WPARAM parameter accompanying the message.
  32. //
  33. // lparam - in, the LPARAM parameter accompanying the message.
  34. LRESULT
  35. OnMessage(
  36. UINT message,
  37. WPARAM wparam,
  38. LPARAM lparam);
  39. private:
  40. // not implemented: no copying allowed
  41. PasswordEditBox(const PasswordEditBox&);
  42. const PasswordEditBox& operator=(const PasswordEditBox&);
  43. CapsLockBalloonTip balloonTip;
  44. };
  45. #endif // PASSWORDEDITBOX_HPP_INCLUDED