Limit what is shown in an editbox without changing data
Not sure the best way to handle this, even if it can be done....
Is there a way to "limit" what is shown in an EDITBOX while not physically changing the fields data?
That is, if I have a EDITBOX, and the matching CString for that box contains a path/filename, can I only display the filename and not the path... BUT... leave the CString with the whole path/filename so I don't have to keep track of it?
Re: Limit what is shown in an editbox without changing data
Your CString can contain everything you want.
You then set to the edit box only those part of CString you want to be shown.
Just use SetWindowText/GetWindowText to set/get texts and extract/append text from/to the CString object.
Re: Limit what is shown in an editbox without changing data
Quote:
Originally Posted by
pbrama
Is there a way to "limit" what is shown in an EDITBOX while not physically changing the fields data?
Standard EDITBOX does not provide such functionality. You have to implement your own control for this.
Re: Limit what is shown in an editbox without changing data
Take a look at CFilterEdit