|
-
May 16th, 2012, 09:39 PM
#1
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?
-
May 17th, 2012, 01:32 AM
#2
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.
Victor Nijegorodov
-
May 17th, 2012, 02:30 AM
#3
Re: Limit what is shown in an editbox without changing data
 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.
Best regards,
Igor
-
May 17th, 2012, 06:27 AM
#4
Re: Limit what is shown in an editbox without changing data
Take a look at CFilterEdit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|