c++ - Adding a non-button hyperlink to MFC application -


i trying add hyperlink direct user of application website. see mfc has built in "mfc link control". in dialog-editor. hyperlinks work correctly. enter image description here

when debug program, links instead turn buttons. enter image description here

is there way add non-button hyperlinks? thanks.

cbutton natural base class of cmfclinkctrl. if misses key properies, cmfclinkctrl revert cbutton. bet on url. try this:

cmfclinkctrl m_btnlink; // <-- associate control! ... bool ctestdlg::oninitdialog()  {     ...     m_btnlink.seturl(_t("http://www.example.com"));     m_btnlink.settooltip(_t("link site"));     m_btnlink.sizetocontent();     ... } 

Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -