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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -