* This function sets the text (original text) to show in the control.
* The control may modify the text for displaying in the GUI.
*/
-void CFilepathEdit::SetOriginalText(LPCTSTR lpszString)
+void CFilepathEdit::SetOriginalText(const CString& szString)
{
- if (_tcscmp(m_sOriginalText, lpszString) == 0)
+ if (m_sOriginalText == szString)
return;
- if (lpszString != 0)
- m_sOriginalText = lpszString;
+ m_sOriginalText = szString;
RefreshDisplayText();
}
LPCTSTR GetUpdatedTipText(CDC * pDC, int maxWidth);
void SetActive(BOOL bActive);
- void SetOriginalText(LPCTSTR lpszString );
+ void SetOriginalText(const CString& szString );
void SetBackColor(COLORREF rgb);
void SetTextColor(COLORREF rgb);