diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..7558e1fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.ilk +*.pdb +*.map +*.bsc +*.sdf \ No newline at end of file diff --git a/DuiLib/Control/UIEdit.cpp b/DuiLib/Control/UIEdit.cpp index a121f023..400e45ed 100644 --- a/DuiLib/Control/UIEdit.cpp +++ b/DuiLib/Control/UIEdit.cpp @@ -373,6 +373,12 @@ namespace DuiLib if( m_bPasswordMode == bPasswordMode ) return; m_bPasswordMode = bPasswordMode; Invalidate(); + if( m_pWindow != NULL ) + { + LONG styleValue = ::GetWindowLong(*m_pWindow, GWL_STYLE); + bPasswordMode ? styleValue |= ES_PASSWORD : styleValue &= ~ES_PASSWORD; + ::SetWindowLong(*m_pWindow, GWL_STYLE, styleValue); + } } bool CEditUI::IsPasswordMode() const