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.
when debug program, links instead turn buttons.
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
Post a Comment