Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Just how do I allow selection of text is a CView?

This topic is 6297 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can anyone please tell me how do I allow selection of text in a CView? For example, I outputted the following line of text using TextOut(....) : "Hello!" in a CView. How do I allow the user to select the text "Hello"? Is this possible in a CView? Thanks!!!!!!! "The feeling of mastering and understanding hard stuff in Game Programming is just like the feeling u get when u perform an Air-Walk in the basketball court, soaring.....and everyone''s watching in awe......."

Share this post

Link to post
Share on other sites
Well you will either have to use a CEditView or write your own handler for the mouse input and clipboard functionality.

When you write text to a CView normally it is only being represented as graphics and not as something that you can cut and paste. To cut and paste using strictly MFC you need to do it from a control of some kind.

I''m pretty sure that is correct but don''t take it to the bank. lol. It has been a while since I have really done anything useful in MFC.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!