Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
void CLoginDialog::ShowPassword()
{
BOOL bVisble;

if(bVisble)
{
m_Edit.SetPasswordChar(L'\0');
m_Edit.RedrawWindow();
}
else
{
m_Edit.SetPasswordChar(L'*');
m_Edit.RedrawWindow();
}

}

What I have tried:

Hi I am begineer this is my code check box click password show after remove checkbox tick don't hide password how please give Answers and explanation frnds
Posted
Updated 3-Oct-16 21:55pm

1 solution

Your bVisble variable is never initialised.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900