c++ - Copying text from an MFC CDialog -
i'm working on code inherited. there class (i'll refer logwindow) inherits cdialog. overall logwindow class creates window , prints out text.
what need copy text automatically generated in window.
i know need sort of mouse , keyboard listener, i'm little lost on how , how select text.
i have working code different log window written same person. code has class (i'll refer copylist) inherits clistbox. unfortunately code isn't documented or managed, difficult figure out functions related copying text , functions related other things such auto scrolling.
i apologize if unspecific, because of i'm working on i'm limited in how can post. update question information can.
you can use getwindowtext or cwnd::getwindowtext text control holds text, copy text inside control, have tinker text if want filtering.
you said have clistbox example working know how iterate on items.
then can use link clipboard: using windows clipboard , check how handle clipboard.
you add simple button "send clipboard" sends text clipboard
Comments
Post a Comment