I have subclassed a CEdit control in order to handle some characters in a textbox.
void CRegistrationKeyEditBox::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
if (_istalpha(nChar))
CEdit::OnChar(nChar, nRepCnt, nFlags);
}
I know i can get the string while handling the ON_CHANGE message but that wont work for me because i want to block some characters and not check for them if they are presented in the string.
When a text is pasted in the editbox i cant construct a CString from it. Is that possible? How can i view the whole string that is pasted in the textbox?