c++ - click event of WindowsFormsControlLibrary button in MFC Dialog based app -
i'm using windows forms control library
elements in app.
my question is:
how perform button click event element comes windows forms control library?
so, can *library*
textbox value in programdlg.cpp
file this:
void cmfcapplication1dlg::onbnclickedbutton1() { // todo: add control notification handler code here afxmessagebox(cstring(m_ctrl1.getcontrol()->textbox1->text)); // m_ctrl1.getcontrol()->button1->click(); // how can write above line perform click event? }
i defined m_ctrl1
in programdlg.h
:
// .... public: cmfcapplication1dlg(cwnd* pparent = null); // standard constructor // data member .net user control: cwinformscontrol<windowsformscontrollibrary1::usercontrol1> m_ctrl1; // ....
p.s sorry bad english.
thanks.
i solved problem visiting this link.
hope useful other developers.
Comments
Post a Comment