Warning When Caps Lock when entering password

The default when entering into a password field in XP is to receive a bubble warning if the "caps lock" key is active. Somehow, this has been disabled. The field still echoes asterisks.
How can the default behaviour be restored?
Who is Participating?
This is indeed the correct behavior of the edit control in XP and above. If it doesn't happen in your edit control, then you might not have the correct manifest settings. It requires version 6 and above of the common controls library (which requires the application manifest).
The following code placed in the stdafx.h file works for me. This is the default code placed by VS2005 for new projects.

#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

Open in new window

This is default behavior in the windows login screen and other windows screens not the textbox control.
This behaviour isnt coded into the textbox control in visual studio. You would need to implement this functionality yourself.

BeaconSoftwareAuthor Commented:
I believe that if the "Password" property of a text box is set to true, not only is the input echoed as asterisks, but a warning bubble is shown when the CAPS LOCK key is on.
Somehow, I have managed to disable the warning bubble (tooltip) and I would like to restore it.
Another possibility (if you are using the correct manifest) may be that you have inadvertently swallowed up the EM_SHOWBALLOONTIP message for the edit control.
BeaconSoftwareAuthor Commented:
Thanks Melange, your manifest change is the solution. (The code was in stdafx.h but inoperative because of a define not made).
In this app, there was no chance of any messages being swallowed
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.